code: def get(object_ids):
      
      worker = global_worker
      worker.check_connected()
      with profiling.profile("ray.get"):
          if worker.mode == LOCAL_MODE:
              # In LOCAL_MODE, ray.get is the identity operation (the input will
              # actually be a value not an objectid).
              return object_ids
          global last_task_error_raise_time
          if isinstance(object_ids, list):
              values = worker.get_object(object_ids)
              for i, value in enumerate(values):
                  if isinstance(value, RayError):
                      last_task_error_raise_time = time.time()
                      raise value
              return values
          else:
              value = worker.get_object([object_ids])[0]
              if isinstance(value, RayError):
                  # If the result is a RayError, then the task that created
                  # this object failed, and we should propagate the error message
                  # here.
                  last_task_error_raise_time = time.time()
                  raise value
              return value
docs: Get a remote object or a list of remote objects from the object store.
  
      This method blocks until the object corresponding to the object ID is
      available in the local object store. If this object is not in the local
      object store, it will be shipped from an object store that has it (once the
      object has been created). If object_ids is a list, then the objects
      corresponding to each object in the list will be returned.
  
      Args:
          object_ids: Object ID of the object to get or a list of object IDs to
              get.
  
      Returns:
          A Python object or a list of Python objects.
  
      Raises:
          Exception: An exception is raised if the task that created the object
              or that created one of the objects raised an exception.