code: def _stable_remove_duplicates(data):
      # Create a new list in the same order as original but with duplicates
      # removed, should never be more than ~16 elements so simple is best
      new_list = []
      for x in data:
          if x not in new_list:
              new_list.append(x)
      return new_list
  
imports: import os
  import re
  import sys
  import json
  import base64
  import argparse
  import subprocess
  import collections
  from copy import deepcopy
  import signal
  import time
  from .multinode_runner import PDSHRunner, OpenMPIRunner, MVAPICHRunner, SlurmRunner, MPICHRunner, IMPIRunner
  from .constants import PDSH_LAUNCHER, OPENMPI_LAUNCHER, MVAPICH_LAUNCHER, SLURM_LAUNCHER, MPICH_LAUNCHER, IMPI_LAUNCHER
  from ..constants import TORCH_DISTRIBUTED_DEFAULT_PORT
  from ..nebula.constants import NEBULA_EXPORT_ENVS
  from ..utils import logger
  from ..autotuning import Autotuner
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 4 for calling a global function with example usage: _stable_remove_duplicates(data) and returns: new_list