code: def _from_ctypes_scalar(t):
      """
      Return the dtype type with endianness included if it's the case
      """
      if getattr(t, "__ctype_be__", None) is t:
          return np.dtype(">" + t._type_)
      elif getattr(t, "__ctype_le__", None) is t:
          return np.dtype("<" + t._type_)
      else:
          return np.dtype(t._type_)
  
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _from_ctypes_scalar(t) and returns: np, np, np