code: def map_tensor_spec_to_dtypes_list(t_spec):
      return [spec.dtype for spec in tf.nest.flatten(t_spec)]
  
file_path: agents/tf_agents/policies/tf_py_policy.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Optional, Text
  import tensorflow
  from tf_agents.policies import py_policy
  from tf_agents.policies import tf_policy
  from tf_agents.specs import tensor_spec
  from tf_agents.typing import types
  from tf_agents.utils import common
  from tf_agents.utils import nest_utils
label_desc: Use image node_id 1 for calling a global function with example usage: map_tensor_spec_to_dtypes_list(t_spec) and returns: unknown