code: def generate_ufuncs_type_stubs(module_name: str, ufuncs: list[Ufunc]):
      stubs, module_all = [], []
      for ufunc in ufuncs:
          stubs.append(f"{ufunc.name}: np.ufunc")
          if not ufunc.name.startswith("_"):
              module_all.append(f"'{ufunc.name}'")
      # jn is an alias for jv.
      module_all.append("'jn'")
      stubs.append("jn: np.ufunc")
      module_all.sort()
      stubs.sort()
  
      contents = STUBS.format(
          ALL=",\n    ".join(module_all),
          STUBS="\n".join(stubs),
      )
  
      stubs_file = f"{module_name}.pyi"
      with open(stubs_file, "w") as f:
          f.write(contents)
  
imports: import itertools
  import json
  import os
  from stat import ST_MTIME
  import argparse
  import re
  import textwrap
  import numpy
label_desc: Use image node_id 13 for calling a global function with example usage: generate_ufuncs_type_stubs(module_name, ufuncs) without return types