human
Solve the following python programming problem given the following code:
def _index_names(cls) : 
    def is_index(name) : 
        attr = getattr (cls, name, None) 
        return getattr (attr, 'is_index', False) 
return [name for name in dir (name) if is_index (name)] 

    
    

    Fix the buggy line: return [name for name in dir (name) if is_index (name)]
assistant
#Here is Python code to fix the buggy line: return [name for name in dir (name) if is_index (name)]
.

return [name for name in dir (cls) if is_index (name)]