code: def get_tensor_specs(env):
      """Returns observation, action and time step TensorSpecs from passed env.
  
      Args:
        env: environment instance used for collection.
      """
      observation_tensor_spec = tensor_spec.from_spec(
          env.observation_spec()
      )
      action_tensor_spec = tensor_spec.from_spec(env.action_spec())
      time_step_tensor_spec = ts.time_step_spec(observation_tensor_spec)
  
      return (
          observation_tensor_spec,
          action_tensor_spec,
          time_step_tensor_spec,
      )
  
imports: from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import time_step
  from tf_agents.trajectories import trajectory
label_desc: Use image node_id 1 for calling a global function with example usage: get_tensor_specs(env) and returns: observation_tensor_spec,  action_tensor_spec,  time_step_tensor_spec