code: def wait(object_ids, num_returns=1, timeout=None):
      
      if isinstance(object_ids, (tuple, np.ndarray)):
          return ray.wait(
              list(object_ids), num_returns=num_returns, timeout=timeout)
  
      return ray.wait(object_ids, num_returns=num_returns, timeout=timeout)
docs: Return a list of IDs that are ready and a list of IDs that are not.
  
      This method is identical to `ray.wait` except it adds support for tuples
      and ndarrays.
  
      Args:
          object_ids (List[ObjectID], Tuple(ObjectID), np.array(ObjectID)):
              List like of object IDs for objects that may or may not be ready.
              Note that these IDs must be unique.
          num_returns (int): The number of object IDs that should be returned.
          timeout (float): The maximum amount of time in seconds to wait before
              returning.
  
      Returns:
          A list of object IDs that are ready and a list of the remaining object
              IDs.