code: def test_jax_to_hlo_with_constants(self):
      def fn(a, b, x, y):
          return a / b * x + y
  
      _, hlo_text = jax_to_ir.jax_to_hlo(
          fn,
          input_shapes=[
              ("x", jax_to_ir.parse_shape_str("f32[128]")),
              ("y", jax_to_ir.parse_shape_str("f32[128]")),
          ],
          constants={
              "a": 123456,
              "b": 4,
          },
      )
      # Because we passed `a` and `b` as constants, they get constant-folded away
      # by Python/JAX to a/b = 30864.
      self.assertIn("constant(30864)", hlo_text)
      self.assertNotIn("123456", hlo_text)
  
file_path: jax/tests/jax_to_ir_test.py
imports: import unittest
  from absl.testing import absltest
  import jax.numpy
  from jax.tools import jax_to_ir
  from jax._src import test_util
label_desc: Use image node_id 2 for calling the JaxToIRTest obj's underlying member method code with example usage: obj.test_jax_to_hlo_with_constants() and returns: unknown