(self, string: str)
return f"({role}, {self._mapping[role][int(party_id)]})"
({role},{party_id})
({role},{party_id})
( { role } { party_id } )
def party_tuple_format(self, string: str):
        """({role},{party_id})"""
        role, party_id = string.strip("()").split(",")
        return f"({role}, {self._mapping[role][int(party_id)]})"
def party_tuple_format ( self , string : str ) : role , party_id = string . strip ( "()" ) . split ( "," ) return f"({role}, {self._mapping[role][int(party_id)]})"