code: def _check_dtype(self, dtype):
          
          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))
docs: Check if dtype string is valid and return ctype string.