code: def test_from_tfds_to_hf():
      assert huggingface_dataset_builder._from_tfds_to_hf("x") == "x"
      assert huggingface_dataset_builder._from_tfds_to_hf("X") == "x"
      assert (
          huggingface_dataset_builder._from_tfds_to_hf("bigscience__p3")
          == "bigscience/P3"
      )
      assert (
          huggingface_dataset_builder._from_tfds_to_hf("fashion_mnist")
          == "fashion_mnist"
      )
      assert (
          huggingface_dataset_builder._from_tfds_to_hf("x__y_z")
          == "x/Y-z"
      )
      with pytest.raises(
          registered.DatasetNotFoundError,
          match='"z" is not listed in Hugging Face datasets.',
      ):
          assert huggingface_dataset_builder._from_tfds_to_hf("z")
  
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 2 for calling a global function with example usage: test_from_tfds_to_hf() without return types