code: def convert(s, datatype="np.float32"):
      i = int(s, 16)  # convert from hex to a Python int
      if datatype == "np.float64":
          cp = pointer(
              c_longlong(i)
          )  # make this into a c long long integer
          fp = cast(
              cp, POINTER(c_double)
          )  # cast the int pointer to a double pointer
      else:
          cp = pointer(c_int(i))  # make this into a c integer
          fp = cast(
              cp, POINTER(c_float)
          )  # cast the int pointer to a float pointer
  
      return fp.contents.value
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/tests/test_umath_accuracy.py
imports: import numpy
  import os
  from os import path
  import sys
  import pytest
  from ctypes import c_longlong, c_double, c_float, c_int, cast, pointer, POINTER
  from numpy.testing import assert_array_max_ulp
  from numpy.testing._private.utils import _glibc_older_than
  from numpy.core._multiarray_umath import __cpu_features__
label_desc: Use image node_id 1 for calling a global function with example usage: convert(s, datatype) and returns: fp