code: def get_agent_class(alg):
      
  
      try:
          return _get_agent_class(alg)
      except ImportError:
          from ray.rllib.agents.mock import _agent_import_failed
          return _agent_import_failed(traceback.format_exc())
docs: Returns the class of a known agent given its name.