def METHOD_NAME():
    """list index implements __index__ in a superclass"""
    class IndexType:
        """Class with __index__ method"""
        def __index__(self):
            """Allow objects of this class to be used as slice indices"""
            return 0
    class IndexSubType(IndexType):
        """Class with __index__ in parent"""
        pass
    return TESTLIST[IndexSubType()] # no error