code: def _random_integers(size, dtype):
      # We do not generate integers outside the int64 range
      platform_int_info = np.iinfo("int_")
      iinfo = np.iinfo(dtype)
      return np.random.randint(
          max(iinfo.min, platform_int_info.min),
          min(iinfo.max, platform_int_info.max),
          size=size,
      ).astype(dtype)
  
file_path: arrow/python/pyarrow/tests/parquet/common.py
imports: import io
  import numpy
  import pyarrow
  from pyarrow.tests import util
label_desc: Use image node_id 6 for calling a global function with example usage: _random_integers(size, dtype) and returns: np