code: def write_code(target):
      with open(target, "w") as fid:
          fid.write(
              "#ifndef NUMPY_CORE_INCLUDE__UMATH_DOC_GENERATED_H_\n"
              "#define NUMPY_CORE_INCLUDE__UMATH_DOC_GENERATED_H_\n"
          )
          for place, string in docstrings.docdict.items():
              cdef_name = f"DOC_{place.upper().replace('.', '_')}"
              cdef_str = normalize_doc(string)
              fid.write(f'#define {cdef_name} "{cdef_str}"\n')
          fid.write(
              "#endif //NUMPY_CORE_INCLUDE__UMATH_DOC_GENERATED_H\n"
          )
  
file_path: numpy/numpy/_core/code_generators/generate_umath_doc.py
imports: import sys
  import os
  import textwrap
  import argparse
  import ufunc_docstrings
label_desc: Use image node_id 2 for calling a global function with example usage: write_code(target) without return types