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