code: def main(get_grid, postprocess_hyperparams):
      args = get_args()
  
      if args.backend == "slurm":
          from .slurm import main as backend_main
      elif args.backend == "fblearner":
          from .fblearner import main as backend_main
  
      backend_main(get_grid, postprocess_hyperparams, args)
  
file_path: mmf/tools/sweeps/lib/__init__.py
imports: import argparse
  import datetime
  import json
  import os
  import socket
label_desc: Use image node_id 2 for calling a global function with example usage: main(get_grid, postprocess_hyperparams) without return types