code: def _matching_float(np_type: npt.DTypeLike) -> type[np.floating]:
      """Return floating point type matching `np_type`"""
      dtype = np.dtype(np_type)
      if dtype.kind not in "cf":
          raise ValueError("Expecting float or complex type as input")
      if issubclass(dtype.type, np.floating):
          return dtype.type
      return _CSIZE2FLOAT[dtype.itemsize]
  
imports: from __future__ import annotations
  import io
  import sys
  import typing
  import warnings
  from functools import reduce
  from operator import getitem, mul
  from os.path import exists, splitext
  import numpy
  from ._compression import COMPRESSED_FILE_LIKES
  from .casting import OK_FLOATS, shared_range
  from .externals.oset import OrderedSet
label_desc: Use image node_id 8 for calling a global function with example usage: _matching_float(np_type) and returns: _CSIZE2FLOAT, dtype