code: def test_round_trip(self):
      config_pairs: List[Tuple[str, HuggingFaceModelConfig]] = [
          (
              "gpt2",
              HuggingFaceModelConfig(
                  namespace=None, model_name="gpt2", revision=None
              ),
          ),
          (
              "stanford-crfm/BioMedLM",
              HuggingFaceModelConfig(
                  namespace="stanford-crfm",
                  model_name="BioMedLM",
                  revision=None,
              ),
          ),
          (
              "stanford-crfm/BioMedLM@main",
              HuggingFaceModelConfig(
                  namespace="stanford-crfm",
                  model_name="BioMedLM",
                  revision="main",
              ),
          ),
      ]
      for expected_model_name, expected_model_config in config_pairs:
          actual_model_config = HuggingFaceModelConfig.from_string(
              expected_model_name
          )
          actual_model_name = str(actual_model_config)
          self.assertEqual(actual_model_name, expected_model_name)
          self.assertEqual(actual_model_config, expected_model_config)
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/test_huggingface_model_registry.py
imports: import pytest
  import unittest
  from typing import List, Tuple
  from helm.benchmark.run_expander import ModelRunExpander
  from helm.proxy.clients.huggingface_model_registry import HuggingFaceModelConfig, register_huggingface_model_config, get_huggingface_model_config
  from helm.proxy.models import get_all_models, get_all_text_models
label_desc: Use image node_id 1 for calling the TestHuggingFaceModelRegistry obj's underlying member method code with example usage: obj.test_round_trip() without return types