code: def generate(filename):
      dirname = os.path.dirname(filename)
      os.makedirs(dirname, exist_ok=True)
      with open(filename, "w") as f:
          script = os.path.basename(__file__)
          print(f"# Generated with `python conf/{script}`", file=f)
          for line in visit_mpi4py_MPI():
              print(line, file=f)
  
imports: import os
  import inspect
  import textwrap
label_desc: Use image node_id 20 for calling a global function with example usage: generate(filename) without return types