code: def _from_ctypes_union(t):
      formats = []
      offsets = []
      names = []
      for fname, ftyp in t._fields_:
          names.append(fname)
          formats.append(dtype_from_ctypes_type(ftyp))
          offsets.append(0)  # Union fields are offset to 0
  
      return np.dtype(
          dict(
              formats=formats,
              offsets=offsets,
              names=names,
              itemsize=ctypes.sizeof(t),
          )
      )
  
file_path: catboost/contrib/python/numpy/py2/numpy/core/_dtype_ctypes.py
imports: import _ctypes
  import ctypes
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _from_ctypes_union(t) and returns: np