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