code: def get_objects_in_sequence(brain_or_object, ctype, cref):
      
      obj = api.get_object(brain_or_object)
      if ctype == "backreference":
          return get_backreferences(obj, cref)
      if ctype == "contained":
          return get_contained_items(obj, cref)
      raise ValueError("Reference value is mandatory for sequence type counter")
docs: Return a list of items