code: def box_space_spec(box_space, tf_dtype):
      return tf.FixedLenFeature(box_space.shape, tf_dtype)
  
file_path: tensor2tensor/tensor2tensor/envs/gym_spaces_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from gym.spaces import Box
  from gym.spaces import Discrete
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: box_space_spec(box_space, tf_dtype) and returns: tf