code: def _format_value(value: Any) -> str:
      """Internal function for formatting values."""
      value = base.to_numpy(value)
      if isinstance(value, (float, np.number)):
          return f"{value:0.3f}"
      return f"{value}"
  
file_path: acme/acme/utils/loggers/terminal.py
imports: import logging
  import time
  from typing import Any, Callable
  from acme.utils.loggers import base
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _format_value(value) and returns: value, value