code: def _check_no_tensors(parameters: Params):
      flat_params = tf.nest.flatten(parameters.params)
      for p in flat_params:
          if isinstance(p, Params):
              _check_no_tensors(p)
          if tf.is_tensor(p):
              raise TypeError(
                  "Saw a `Tensor` value in parameters:\n  {}".format(
                      parameters
                  )
              )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  from typing import Any, Mapping, Text, Type
  import numpy
  import tensorflow
  import tensorflow_probability
  from tf_agents.distributions import tanh_bijector_stable
  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 6 for calling a global function with example usage: _check_no_tensors(parameters) without return types