code: def _is_little_endian(tensor: np.ndarray) -> bool:
      byteorder = tensor.dtype.byteorder
      if byteorder == "=":
          if sys.byteorder == "little":
              return True
          else:
              return False
      elif byteorder == "|":
          return True
      elif byteorder == "<":
          return True
      elif byteorder == ">":
          return False
      raise ValueError(f"Unexpected byte order {byteorder}")
  
file_path: safetensors/bindings/python/py_src/safetensors/numpy.py
imports: import os
  import sys
  from typing import Dict, Optional, Union
  import numpy
  from safetensors import deserialize, safe_open, serialize, serialize_file
label_desc: Use image node_id 8 for calling a global function with example usage: _is_little_endian(tensor) and returns: True, False, True, True, False