code: def get_instance():
      
      global _instances
      user_agents = _config['user-agents']
  
      user_agent = user_agents[
          random.randint(0, len(user_agents) - 1)
      ] if len(user_agents) > 0 else DEFAULT_UA
  
      instance_key = user_agent
  
      try:
          instance = _instances[instance_key]
      except KeyError:
          instance = Client(user_agent, get_proxy)
          _instances[instance_key] = instance
  
      return instance
docs: Return an instance of Client.