code: def __getitem__(self, key: int) -> Party:
      rank, party = self.parties[key]
      return Party(
          self._ctx,
          self.federation,
          self.computing,
          party,
          rank,
          self.namespace,
      )
  
imports: import logging
  import typing
  from typing import List, Tuple, TypeVar, Union
  from fate.arch.federation.api import PartyMeta, TableRemotePersistentPickler, TableRemotePersistentUnpickler
  from fate.arch.trace import federation_get_timer, federation_remote_timer
  from ._namespace import NS
label_desc: Use image node_id 4 for calling the Parties obj's underlying member method code with example usage: obj.__getitem__(key) and returns: Party