code: def bool_flag(s):
      """
      Parse boolean arguments from the command line.
      """
      FALSY_STRINGS = {"off", "false", "0"}
      TRUTHY_STRINGS = {"on", "true", "1"}
      if s.lower() in FALSY_STRINGS:
          return False
      elif s.lower() in TRUTHY_STRINGS:
          return True
      else:
          raise argparse.ArgumentTypeError(
              "invalid value for a boolean flag"
          )
  
imports: import warnings
  import csv
  import datetime
  import os
  import pickle
  import faiss
  import matplotlib.pyplot
  import numpy
  import torch
  from PIL import Image
  from sklearn import metrics
  from torch import nn
  from tqdm import tqdm
  import pdb
label_desc: Use image node_id 12 for calling a global function with example usage: bool_flag(s) and returns: False, True