def METHOD_NAME(DType):
    # To pickle a DType without having to add top-level names, pickle the
    # scalar type for now (and assume that reconstruction will be possible).
    if DType is dtype:
        return "dtype"  # must pickle `np.dtype` as a singleton.
    scalar_type = DType.type  # pickle the scalar type for reconstruction
    return _DType_reconstruct, (scalar_type,)