code: def get_log_probability(
      info: types.NestedTensorOrArray,
      default_log_probability: Optional[types.Float] = None,
  ) -> types.Float:
      """Gets the CommonFields.LOG_PROBABILITY from info depending on type."""
      return _maybe_get_value_namedtuple_or_dict(
          info, CommonFields.LOG_PROBABILITY, default_log_probability
      )
  
file_path: agents/tf_agents/trajectories/policy_step.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from typing import Any, Mapping, NamedTuple, Optional, Text, Union
  from tf_agents.typing import types
label_desc: Use image node_id 4 for calling a global function with example usage: get_log_probability(info, default_log_probability) and returns: _maybe_get_value_namedtuple_or_dict