code: def get_configurator(cls, configurator_name):
      if configurator_name not in cls.configurator_dict:
          raise KeyError(
              f"Configurator {configurator_name} not found in "
              f"available configurators: {list(cls.configurator_dict)}"
          )
      return cls.configurator_dict[configurator_name]
  
file_path: jiant/jiant/proj/main/scripts/configurator.py
imports: import math
  import os
  import torch
  import jiant.utils.zconf
  import jiant.utils.python.io
  import jiant.utils.python.datastructures
label_desc: Use image node_id 2 for calling the Registry obj's underlying member method code with example usage: obj.get_configurator(cls, configurator_name) and returns: cls