code: def _get_state(step_idx, max_steps):
      """One-hot encoding of which state we're on"""
      zeros = np.zeros(max_steps, dtype=np.float32)
      if step_idx == max_steps:
          return zeros
      assert 0 <= step_idx and step_idx < max_steps
      zeros[step_idx] = 1.0
      return zeros
  
file_path: ReAgent/reagent/gym/envs/functionality/possible_actions_mask_tester.py
imports: import gym
  import numpy
  from gym.spaces import Box, Discrete
label_desc: Use image node_id 1 for calling a global function with example usage: _get_state(step_idx, max_steps) and returns: zeros, zeros