code: def write_info_file(dirpath, modulename, **info):
      """write the given info to 'modulename/__info__.py'
  
      info expects:
          doc: the module's long_description
          version: the module's version string
          author: the module's author string
          license: the module's license contents
      """
      import os
  
      infofile = os.path.join(dirpath, "%s/__info__.py" % modulename)
      header = """#!/usr/bin/env python
  #
  # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
  # Copyright (c) 2024 The Uncertainty Quantification Foundation.
  # License: 3-clause BSD.  The full license text is available at:
  #  - https://github.com/uqfoundation/multiprocess/blob/master/LICENSE
  """  # XXX: package, author, and email are hardwired in the header
      doc = info.get("doc", None)
      version = info.get("version", None)
      author = info.get("author", None)
      license = info.get("license", None)
      with open(infofile, "w") as fh:
          fh.write(header)
          if doc is not None:
              fh.write("'''%s'''\n\n" % doc)
          fh.write("__all__ = []\n")  # needed for test_import
          if version is not None:
              fh.write("__version__ = %r\n" % version)
          if author is not None:
              fh.write("__author__ = %r\n\n" % author)
          if license is not None:
              fh.write("__license__ = '''\n%s'''\n" % license)
      return
  
label_desc: Use image node_id 3 for calling a global function with example usage: write_info_file(dirpath, modulename) without return types