code: def module_to_string(module: ir.Module) -> str:
      output = io.StringIO()
      module.operation.print(
          file=output,
          enable_debug_info=True,
          print_generic_op_form=False,
      )
      return output.getvalue()
  
file_path: jax/tests/metadata_test.py
imports: import io
  import unittest
  from absl.testing import absltest
  from jax._src import test_util
  import jax
  from jax._src import config
  from jax._src.lib.mlir import ir
  from jax import numpy
  from jax import config
label_desc: Use image node_id 1 for calling a global function with example usage: module_to_string(module) and returns: output