code: def test_model_id(self):
      config_pairs: List[Tuple[str, str]] = [
          ("gpt2", "gpt2"),
          ("stanford-crfm/BioMedLM", "stanford-crfm/BioMedLM"),
          ("stanford-crfm/BioMedLM@main", "stanford-crfm/BioMedLM"),
      ]
      for expected_model_name, expected_model_id in config_pairs:
          actual_model_config = HuggingFaceModelConfig.from_string(
              expected_model_name
          )
          self.assertEqual(
              actual_model_config.model_id, expected_model_id
          )
  
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 2 for calling the TestHuggingFaceModelRegistry obj's underlying member method code with example usage: obj.test_model_id() without return types