

def __getitem__(self, args):
    if (not isinstance(args, tuple)):
        args = (args,)
    if (len(args) == 2):
        scalar_arg_1 = (numpy.isscalar(args[0]) or (getattr(args[0], 'type', None) == tensor.iscalar))
        scalar_arg_2 = (numpy.isscalar(args[1]) or (getattr(args[1], 'type', None) == tensor.iscalar))
        if (scalar_arg_1 and scalar_arg_2):
            ret = get_item_scalar(self, args)
        elif isinstance(args[0], list):
            ret = get_item_2lists(self, args[0], args[1])
        else:
            ret = get_item_2d(self, args)
    elif isinstance(args[0], list):
        ret = get_item_list(self, args[0])
    else:
        ret = get_item_2d(self, args)
    return ret

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py _sparse_py_operators.__getitem__/original