code: def register(self, type_: Type[ConfigSource]) -> None:
      scheme = type_.scheme()
      if scheme in self.types:
          if self.types[scheme].__name__ != type_.__name__:
              raise ValueError(
                  f"{scheme} is already registered with a different class"
              )
          else:
              # Do not replace existing ConfigSource
              return
      self.types[scheme] = type_
  
file_path: hydra/hydra/_internal/sources_registry.py
imports: from typing import Any, Dict, Type
  from hydra.core.singleton import Singleton
  from hydra.plugins.config_source import ConfigSource
label_desc: Use image node_id 2 for calling the SourcesRegistry obj's underlying member method code with example usage: obj.register(type_) without return types