def METHOD_NAME(Comp):
    """Check that fields have a valid numpy dtype"""
    component_name = Comp._name
    for name, meta in Comp._info.items():
        dtype = meta["dtype"]
        try:
            np.dtype(dtype)
        except TypeError as exc:
            raise ValueError(
                f"{component_name} has a bad dtype ({dtype}) for variable: {name}"
            ) from exc