def METHOD_NAME(self, data, indexes):
    '''extract the indexes from the list'''
    if type(data) in [list, tuple]:
        return [data[index] for index in indexes if -len(data) <= index < len(data)]
    if type(data) == str:
        return ''.join([data[index] for index in indexes if -len(data) <= index < len(data)])
    elif type(data) == np.ndarray:
        return data[indexes]
    else:
        return None