code: def _write_flags(params, output_path):
      flags = _flags_for_click_params(params)
      log.debug("writing flags to %s: %s", output_path, flags)
      with open(output_path, "w") as f:
          json.dump(flags, f)
  
imports: import argparse
  import json
  import logging
  import os
  import subprocess
  import sys
  import click
  from guild import python_util
  from guild import util
  from .None import import_argparse_flags_main
  from .None import python_script
label_desc: Use image node_id 7 for calling a global function with example usage: _write_flags(params, output_path) without return types