code: def create_protocol(name, **kwargs):
      
      cls = protocol_map.get(name)
      if not cls:
          raise ValueError('Unsupported protocol "%s".' % name)
      return cls(**kwargs)
docs: Returns an instance of the protocol with the given name.
  
      :type  name: str
      :param name: The name of the protocol.
      :rtype:  Protocol
      :return: An instance of the protocol.