code: def setup_logger(name="", verbose=VERBOSE, fullpath=TRACE):
      logger = logging.getLogger(name)
  
      if verbose is not None:
          if verbose:
              logger.setLevel(logging.DEBUG)
          else:
              logger.setLevel(logging.ERROR)
      elif os.environ.get("LOG_LEVEL", None) is not None:
          if os.environ["LOG_LEVEL"] == "TRACE":
              logger.setLevel(logging.DEBUG)
          else:
              logger.setLevel(os.environ["LOG_LEVEL"])
  
      if not logger.handlers and (
          verbose is not None
          or os.environ.get("LOG_LEVEL", None) is not None
      ):
          logger.addHandler(get_handler(short=False))
  
      return logger
  
imports: import hashlib
  import json
  import logging
  import os
  import pandas
  import pandas.util
  import platform
  import random
  import string
  import uuid
  import warnings
  from functools import lru_cache
  from typing import Any
  from collections import UserDict
  from .constants import VERBOSE, CACHE_COERCION_SIZE, TRACE
label_desc: Use image node_id 2 for calling a global function with example usage: setup_logger(name, verbose, fullpath) and returns: logger