def METHOD_NAME(
    data_spec,
    sequence_length=None,
    table_name='uniform_table',
    table=None,
    reverb_server_address=None,
    port=None,
    replay_capacity=1000,
    min_size_limiter_size=1,
    stride_length=1,
):
  """Returns an instance of Reverb replay buffer and observer to add items.
  Either creates a local reverb server or uses a remote reverb server at
  reverb_sever_address (if set).
  If `reverb_server_address is None`, creates a local server with a uniform
  table underneath.
  Args:
    data_spec: spec of the data elements to be stored in the replay buffer
    sequence_length: integer specifying sequence_lenghts used to write to the
      given table.
    table_name: Name of the uniform table to create.
    table: Optional table for the backing local server. If None, automatically
      creates a uniform sampling table.
    reverb_server_address: Address of the remote reverb server, if None a local
      server is created.
    port: Port to launch the server in.
    replay_capacity: capacity of the local replay server, if using (i.e. if
      reverb_server_address is None).
    min_size_limiter_size: Minimum number of items required in the RB before
      sampling can begin, used for local server only.
    stride_length: Integer strides for the sliding window for overlapping
      sequences.
  Returns:
    A tuple consisting of:
      - reverb replay buffer instance
      - replay buffer observer
    Note: the if local server is created, it is not returned. It can be
      retrieved by calling local_server() on the returned replay buffer.
  """
  reverb_replay = get_reverb_buffer(
      data_spec=data_spec,
      sequence_length=sequence_length,
      table_name=table_name,
      table=table,
      reverb_server_address=reverb_server_address,
      port=port,
      replay_capacity=replay_capacity,
      min_size_limiter_size=min_size_limiter_size,
  )
  rb_observer = reverb_utils.ReverbAddTrajectoryObserver(
      reverb_replay.py_client,
      table_name,
      sequence_length=sequence_length,
      stride_length=stride_length,
  )
  return reverb_replay, rb_observer