docs: def _check_dtype(self, dtype):
          """Check if dtype string is valid and return ctype string."""
          try:
              return _ffi_types[dtype]
          except KeyError:
              raise ValueError("dtype must be one of {0!r} and not {1!r}".format(
                  sorted(_ffi_types.keys()), dtype))