code: def _summarize(
      *,
      results,
      data_to_summarize,
      keys_to_log,
      include_histograms=False,
  ):
      for k in keys_to_log:
          if data_to_summarize[k].shape == ():
              results.update({k: data_to_summarize[k]})
          elif include_histograms:
              results.update({k: data_to_summarize[k]})
  
file_path: ray/python/ray/rllib/algorithms/dreamerv3/utils/summaries.py
imports: import numpy
  from ray.rllib.algorithms.dreamerv3.utils.debugging import create_cartpole_dream_image, create_frozenlake_dream_image
  from ray.rllib.policy.sample_batch import SampleBatch
  from ray.rllib.utils.tf_utils import inverse_symlog
label_desc: Use image node_id 1 for calling a global function with example usage: _summarize() without return types