def create_remote_environment(
    username,
    token,
    model_name='',
    track='',
    stacked=False,
    representation='raw',
    rewards='scoring',
    channel_dimensions=(
        observation_preprocessing.SMM_WIDTH,
        observation_preprocessing.SMM_HEIGHT),
    include_rendering=False):
  """Creates a remote Google Research Football environment.

  Args:
    username: User name.
    token: User token.
    model_name: A model identifier to be displayed on the leaderboard.
    track: which competition track to connect to.
    stacked: If True, stack 4 observations, otherwise, only the last
      observation is returned by the environment.
      Stacking is only possible when representation is one of the following:
      "pixels", "pixels_gray" or "extracted".
      In that case, the stacking is done along the last (i.e. channel)
      dimension.
    representation: See create_environment.representation comment.
    rewards: Comma separated list of rewards to be added.
       Currently supported rewards are 'scoring' and 'checkpoints'.
    channel_dimensions: (width, height) tuple that represents the dimensions of
       SMM or pixels representation.
    include_rendering: Whether to return frame as part of the output.
  Returns:
    Google Research Football environment.
  """
  from gfootball.env import remote_football_env
  env = remote_football_env.RemoteFootballEnv(
      username, token, model_name=model_name, track=track,
      include_rendering=include_rendering)
  env = _apply_output_wrappers(
      env, rewards, representation, channel_dimensions,
      env._config.number_of_players_agent_controls() == 1, stacked)
  return env
Creates a remote Google Research Football environment.

  Args:
    username: User name.
    token: User token.
    model_name: A model identifier to be displayed on the leaderboard.
    track: which competition track to connect to.
    stacked: If True, stack 4 observations, otherwise, only the last
      observation is returned by the environment.
      Stacking is only possible when representation is one of the following:
      "pixels", "pixels_gray" or "extracted".
      In that case, the stacking is done along the last (i.e. channel)
      dimension.
    representation: See create_environment.representation comment.
    rewards: Comma separated list of rewards to be added.
       Currently supported rewards are 'scoring' and 'checkpoints'.
    channel_dimensions: (width, height) tuple that represents the dimensions of
       SMM or pixels representation.
    include_rendering: Whether to return frame as part of the output.
  Returns:
    Google Research Football environment.
  
gfootball/env/__init__.py