code: def _numpy_true_div(x, y):
      """Performs true division, and cast the result in the type we expect.
  
      We define that function so we can use it in `TrueDivTester.expected`,
      because simply calling np.true_divide could cause a dtype mismatch.
      """
      out = np.true_divide(x, y)
      # Use floatX as the result of int / int
      if x.dtype in discrete_dtypes and y.dtype in discrete_dtypes:
          out = _asarray(out, dtype=config.floatX)
      return out
  
imports: import os
  from copy import copy
  from itertools import combinations
  from tempfile import mkstemp
  import numpy
  import pytest
  import pytensor
  from pytensor import function, shared
  from pytensor.compile.mode import get_default_mode
  from pytensor.configdefaults import config
  from pytensor.graph.utils import MethodNotDefined
  from pytensor.misc.safe_asarray import _asarray
  from pytensor.tensor.type import TensorType, complex_dtypes, discrete_dtypes, float_dtypes
  from tests import unittest_tools
label_desc: Use image node_id 22 for calling a global function with example usage: _numpy_true_div(x, y) and returns: out