code: def test_convert_to_np_dtype():
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("bool_")
          == np.bool_
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("float")
          == np.float32
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("double")
          == np.float64
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype(
              "large_string"
          )
          == np.object_
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("string")
          == np.object_
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("utf8")
          == np.object_
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("int32")
          == np.int32
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("int64")
          == np.int64
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype("int64")
          == tf.int64
      )
      assert (
          huggingface_dataset_builder._convert_to_np_dtype(
              "timestamp[s, tz=UTC]"
          )
          == np.int64
      )
      with pytest.raises(ValueError, match="Unrecognized type.+"):
          huggingface_dataset_builder._convert_to_np_dtype(
              "I am no dtype"
          )
  
imports: import datetime
  from unittest import mock
  from absl import logging
  import numpy
  import pytest
  import tensorflow
  from tensorflow_datasets.core import features
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core.dataset_builders import huggingface_dataset_builder
label_desc: Use image node_id 4 for calling a global function with example usage: test_convert_to_np_dtype() without return types