code: def test_to_numpy():
      if sys.byteorder == "little":
          assert endian_codes["native"] == "<"
          assert endian_codes["swapped"] == ">"
      else:
          assert endian_codes["native"] == ">"
          assert endian_codes["swapped"] == "<"
      assert endian_codes["native"] == endian_codes["="]
      assert endian_codes["big"] == ">"
      for code in ("little", "<", "l", "L", "le"):
          assert endian_codes[code] == "<"
      for code in ("big", ">", "b", "B", "be"):
          assert endian_codes[code] == ">"
  
imports: import sys
  from ..volumeutils import endian_codes, native_code, swapped_code
label_desc: Use image node_id 2 for calling a global function with example usage: test_to_numpy() without return types