code: def _print_json(
      expanded: List[ce.Experiment], pprint: bool = False
  ) -> None:
      """Print the list of expanded experiments to stdout; if pprint is true,
      pretty-prints each JSON dict using an indent of 2, else prints the list with
      no newlines.
  
      """
      indent = 2 if pprint else None
      print(json.dumps(expanded, indent=indent))
  
file_path: caliban/caliban/expansion.py
imports: from __future__ import absolute_import, division, print_function
  import json
  import logging
  from typing import List
  from absl import app, logging
  from absl.flags import argparse_flags
  import caliban.config.experiment
  from caliban import __version__
label_desc: Use image node_id 4 for calling a global function with example usage: _print_json(expanded, pprint) without return types