code: def parse_args():
      """
      Parse input arguments.
      """
      parser = argparse.ArgumentParser(
          description="Perform membership inference attacks"
      )
      parser.add_argument(
          "--pca",
          default=20,
          type=int,
          help="Number of PCA dimensions (0 for raw data)",
      )
      parser.add_argument(
          "--number_arms",
          default=None,
          type=int,
          help="create arbitrary number of arms via k-means",
      )
      parser.add_argument(
          "--bandwidth",
          default=1.0,
          type=float,
          help="bandwidth of kernel used to assign rewards",
      )
      parser.add_argument(
          "--checkpoint_folder",
          default=None,
          type=str,
          help="folder from which to load checkpointed models",
      )
      parser.add_argument(
          "--permfile",
          default=None,
          type=str,
          help="file with sampling permutation",
      )
      parser.add_argument(
          "--epsilon",
          default=0.01,
          type=float,
          help="exploration parameter (default = 0.01)",
      )
      parser.add_argument(
          "--savefile",
          default=None,
          type=str,
          help="file to pickle advantages",
      )
      parser.add_argument(
          "--visualize",
          action="store_true",
          help="visualize results with visdom",
      )
      parser.add_argument(
          "--world_size",
          type=int,
          default=2,
          help="The number of parties to launch. Each party acts as its own process",
      )
      parser.add_argument(
          "--multiprocess",
          default=False,
          action="store_true",
          help="Run example in multiprocess mode",
      )
      return parser.parse_args()
  
file_path: CrypTen/examples/bandits/membership_inference.py
imports: import argparse
  import logging
  import os
  import pickle
  import examples.util
  import torch
  import visdom
  from examples.multiprocess_launcher import MultiProcessLauncher
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: parser