code: def deterministic_distribution_from_spec(spec):
      """Creates a Deterministic distribution_spec from a tensor_spec."""
      return DistributionSpec(
          tfd.Deterministic, {"loc": spec}, sample_spec=spec
      )
  
file_path: agents/tf_agents/specs/distribution_spec.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow_probability
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 for calling a global function with example usage: deterministic_distribution_from_spec(spec) and returns: DistributionSpec