code: def get_parties(parties):
      _parties = []
      for party in parties:
          if isinstance(party, str):
              _parties.append(tuple(party.split(":")))
          else:
              _parties.append(party)
      return _parties
  
file_path: FATE/python/fate/arch/launchers/argparser.py
imports: import dataclasses
  import json
  import sys
  from argparse import ArgumentParser
  from enum import Enum
  from pathlib import Path
  from typing import Any, Iterable, List, NewType, Optional, Tuple, Union
label_desc: Use image node_id 1 for calling a global function with example usage: get_parties(parties) and returns: _parties