code: def make_sequence(obj):
      
      if is_sequence(obj):
          return np.array(list(obj))
      else:
          return np.array([obj])
docs: Given an object, if it is a sequence return, otherwise
      add it to a length 1 sequence and return.
  
      Useful for wrapping functions which sometimes return single
      objects and other times return lists of objects.
  
      Parameters
      --------------
      obj : object
        An object to be made a sequence
  
      Returns
      --------------
      as_sequence : (n,) sequence
         Contains input value