def compute_hash(env, actions):
  """Computes hash of observations returned by environment for a given scenario.

  Args:
    env: environment
    actions: number of actions

  Returns:
    hash
  """
  o = env.reset()
  hash_value = observation_hash(o)
  done = False
  step = 0
  while not done:
    o, _, done, _ = env.step(step % actions)
    hash_value = observation_hash(o, hash_value)
    step += 1
    if step >= 200:
      break
  return hash_value
Computes hash of observations returned by environment for a given scenario.

  Args:
    env: environment
    actions: number of actions

  Returns:
    hash
  
gfootball/env/football_env_test.py