code: def to_dtype(val):
      """Parse *val* to return a dtype."""
      return np.dtype([i[:-1] for i in val])
  
file_path: satpy/satpy/readers/xmlformat.py
imports: from __future__ import annotations
  import numpy
  from defusedxml.ElementTree import parse
label_desc: Use image node_id 4 for calling a global function with example usage: to_dtype(val) and returns: np