code: def main(run_experiment):
      """
      Runs encrypted contextual bandits learning experiment on MNIST.
      """
      # parse input arguments:
      args = parse_args(os.environ.get("HOSTNAME", "localhost"))
      if args.mnist_dir is not None:
          process_mnist_files(args.mnist_dir, "/tmp/MNIST/processed")
  
      if args.multiprocess:
          launcher = MultiProcessLauncher(
              args.world_size, run_experiment, args
          )
          launcher.start()
          launcher.join()
          launcher.terminate()
      else:
          run_experiment(args)
  
file_path: CrypTen/examples/bandits/launcher.py
imports: import argparse
  import logging
  import os
  import random
  import examples.util
  import torch
  import visdom
  from examples.multiprocess_launcher import MultiProcessLauncher
  from examples.util import NoopContextManager, process_mnist_files
  from torchvision.datasets.mnist import MNIST
label_desc: Use image node_id 10 for calling a global function with example usage: main(run_experiment) without return types