code: def gen_pyx(odir):
      gtr_files = glob.glob(jp(os.path.abspath("generator"), "*")) + [
          "./setup.py"
      ]
      src_files = [
          os.path.abspath("build/daal4py_cpp.h"),
          os.path.abspath("build/daal4py_cpp.cpp"),
          os.path.abspath("build/daal4py_cy.pyx"),
      ]
      if all(os.path.isfile(x) for x in src_files):
          src_files.sort(key=os.path.getmtime)
          gtr_files.sort(key=os.path.getmtime, reverse=True)
          if os.path.getmtime(src_files[0]) > os.path.getmtime(
              gtr_files[0]
          ):
              print(
                  "Generated files are all newer than generator code."
                  "Skipping code generation"
              )
              return
  
      from generator.gen_daal4py import gen_daal4py
  
      odir = os.path.abspath(odir)
      if not os.path.isdir(odir):
          os.mkdir(odir)
      gen_daal4py(
          dal_root,
          odir,
          d4p_version,
          no_dist=no_dist,
          no_stream=no_stream,
      )
  
imports: import distutils.command.build
  import glob
  import os
  import pathlib
  import sys
  import time
  from concurrent.futures import Future, ThreadPoolExecutor
  from distutils.sysconfig import get_config_vars
  from os.path import join
  import numpy
  import setuptools.command.develop
  from Cython.Build import cythonize
  from setuptools import Extension, setup
  from setuptools.command.build_ext import build_ext
  import scripts.build_backend
  from scripts.package_helpers import get_packages_with_tests
  from scripts.version import get_onedal_version
label_desc: Use image node_id 7 for calling a global function with example usage: gen_pyx(odir) without return types