code: def _get_party_topic_infos_by_name_and_partitions(
      self, parties: typing.List[Party], name=None, partitions=None
  ) -> typing.List:
      topic_infos = [
          [
              self._get_or_create_topic(party, "-".join([name, str(i)]))
              for i in range(partitions)
          ]
          for party in parties
      ]
      return topic_infos
  
imports: import json
  import logging
  import sys
  import typing
  from typing import List
  from fate.arch.computing.api import KVTableContext
  from fate.arch.federation.api import Federation, PartyMeta, TableMeta
  from ._datastream import Datastream
  from ._parties import Party
label_desc: Use image node_id 15 for calling the MessageQueueBasedFederation obj's underlying member method code with example usage: obj._get_party_topic_infos_by_name_and_partitions(parties, name, partitions) and returns: topic_infos