code: def test_from_hf_to_tfds():
      assert huggingface_dataset_builder.from_hf_to_tfds("x") == "x"
      assert huggingface_dataset_builder.from_hf_to_tfds("X") == "x"
      assert huggingface_dataset_builder.from_hf_to_tfds("x-y") == "x_y"
      assert (
          huggingface_dataset_builder.from_hf_to_tfds("x/y") == "x__y"
      )
      assert (
          huggingface_dataset_builder.from_hf_to_tfds("x_v1.0")
          == "x_v1_0"
      )
  
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 1 for calling a global function with example usage: test_from_hf_to_tfds() without return types