code: def serialize(values: base.LoggingData) -> str:
      """Converts `values` to a pretty-printed string.
  
      This takes a dictionary `values` whose keys are strings and returns
      a formatted string such that each [key, value] pair is separated by ' = ' and
      each entry is separated by ' | '. The keys are sorted alphabetically to ensure
      a consistent order, and snake case is split into words.
  
      For example:
  
          values = {'a': 1, 'b' = 2.33333333, 'c': 'hello', 'big_value': 10}
          # Returns 'A = 1 | B = 2.333 | Big Value = 10 | C = hello'
          values_string = serialize(values)
  
      Args:
        values: A dictionary with string keys.
  
      Returns:
        A formatted string.
      """
      return " | ".join(
          f"{_format_key(k)} = {_format_value(v)}"
          for k, v in sorted(values.items())
      )
  
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 3 for calling a global function with example usage: serialize(values) and returns: str