code: def dense_int_array(
      xs,
  ) -> ir.DenseIntElementsAttr | ir.DenseI64ArrayAttr:
      if hlo.get_api_version() < 5:
          return ir.DenseIntElementsAttr.get(np.asarray(xs, np.int64))
      return ir.DenseI64ArrayAttr.get(np.asarray(xs, np.int64))
  
file_path: jax/jaxlib/hlo_helpers.py
imports: from __future__ import annotations
  from collections.abc import Sequence
  from functools import partial
  from typing import Callable, Union
  import jaxlib.mlir.ir
  import jaxlib.mlir.dialects.stablehlo
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: dense_int_array(xs) and returns: ir, ir