def null_slice(slice_):
try:<EOL><INDENT>slice_ = as_slice(slice_)<EOL><DEDENT>except TypeError:<EOL><INDENT>return False<EOL><DEDENT>if isinstance(slice_, numpy.ndarray) and numpy.all(slice_):<EOL><INDENT>return True<EOL><DEDENT>if isinstance(slice_, slice) and slice_ in (<EOL>slice(None, None, None), slice(<NUM_LIT:0>, None, <NUM_LIT:1>)<EOL>):<EOL><INDENT>return True<EOL><DEDENT>
Returns True if a slice will have no affect