code: def __to_yaml(value):
      if Value.is_primitive(value):
          return value
      elif isinstance(value, list):
          return [Value.to_yaml_truncated(v) for v in value]
      elif isinstance(value, dict):
          return {
              k: Value.to_yaml_truncated(v) for k, v in value.items()
          }
      elif isinstance(value, tuple):
          return tuple(Value.to_yaml_truncated(v) for v in value)
      else:
          return Value.to_str(value)
  
file_path: labml/client/labml/internal/configs/utils.py
imports: import warnings
  from typing import Tuple, Union, List, TYPE_CHECKING
label_desc: Use image node_id 6 for calling the Value obj's underlying member method code with example usage: obj.__to_yaml(value) and returns: value, unknown, unknown, tuple, Value