def METHOD_NAME(np_dtype):
    try:
        return _type_mapping[np_dtype]
    except KeyError:
        raise TypeError(
            f"Does not support {np_dtype}, available types include "
            f"{', '.join(t.name for t in _type_mapping)}"
        )