code: def from_conf(
      federation_session_id: str,
      computing_session,
      party: PartyMeta,
      parties: typing.List[PartyMeta],
      host: str,
      port: int,
      max_message_size: typing.Optional[int] = None,
  ):
      mq = MQ(host, port)
  
      return OSXFederation(
          federation_session_id=federation_session_id,
          computing_session=computing_session,
          party=party,
          parties=parties,
          max_message_size=max_message_size,
          mq=mq,
      )
  
imports: import json
  import typing
  from logging import getLogger
  from fate.arch.federation.api import PartyMeta
  from fate.arch.federation.backends.osx import osx_pb2
  from fate.arch.federation.message_queue import MessageQueueBasedFederation
  from ._mq_channel import MQChannel
label_desc: Use image node_id 1 for calling the OSXFederation obj's underlying member method code with example usage: obj.from_conf(federation_session_id, computing_session, party, parties, host, port, max_message_size) and returns: OSXFederation