code: def _setup_logging(args):
      """Sets up the logging based on args"""
      if args.verbose:
          log.setLevel(logging.DEBUG)
      else:
          log.setLevel(logging.INFO)
      stdout_handler = logging.StreamHandler(stream=sys.stdout)
      stdout_handler.setLevel(logging.DEBUG)
      stdout_handler.setFormatter(
          logging.Formatter(
              "-----    %(levelname)s    |    "
              "%(asctime)s    |    "
              "%(filename)s line %(lineno)d"
              "     -----\n"
              '"%(message)s"'
          )
      )
      log.addHandler(stdout_handler)
      log.info(
          "Logging at level {}.".format(logging.getLevelName(log.level))
      )
      log.debug("args passed in => {}".format(args))
  
imports: import os
  import sys
  import argparse
  import traceback
  import json
  import re
  import logging
  import yaml
  import nbformat
  from nbconvert import HTMLExporter
  from arcgis.gis import GIS
label_desc: Use image node_id 3 for calling a global function with example usage: _setup_logging(args) without return types