class_docstr: Memory allocation test.
docstr: Test with global axis separator.
docstr_tok: ["Test","with","global","axis","separator","."]
code: def test_global_axis_separator(
      self, hexagon_session, shape, dtype, scope, axis_separators
  ):
      """Test with global axis separator."""
      mod1 = tvm.build(
          generated_func(shape, dtype, axis_separators),
          target=get_hexagon_target("v69"),
      )
      mod2 = hexagon_session.load_module(mod1)
  
      a_np = np.ones(shape=shape, dtype=dtype)
      a = allocate_hexagon_array(
          hexagon_session.device,
          data=a_np,
          mem_scope=scope,
          axis_separators=axis_separators,
      )
  
      b_np = np.zeros(shape=shape, dtype=dtype)
      b = allocate_hexagon_array(
          hexagon_session.device,
          data=b_np,
          mem_scope=scope,
          axis_separators=axis_separators,
      )
  
      mod2(a, b)
      tvm.testing.assert_allclose(
          a.numpy() * 2, b.numpy(), atol=1e-4, rtol=1e-4
      )
  
file_path: tvm/tests/python/contrib/test_hexagon/test_memory_alloc.py
imports: import numpy
  import tvm
  from tvm.script import tir
  from tvm.contrib.hexagon import allocate_hexagon_array
  from .infrastructure import get_hexagon_target
label_desc: Use image node_id 1 for calling the TestMemoryAlloc obj's underlying member method code with example usage: obj.test_global_axis_separator(hexagon_session, shape, dtype, scope, axis_separators) without return types