code: def hlo_const(x: np.ndarray) -> ir.Value:
      assert isinstance(x, np.ndarray)
      return hlo.constant(
          ir.DenseElementsAttr.get(x, type=dtype_to_ir_type(x.dtype))
      )
  
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 5 for calling a global function with example usage: hlo_const(x) and returns: hlo