code: def setup_task_logger(logger, *args, **kwargs):
      # FileHandler
      fh = logging.FileHandler("/var/log/celery/worker.log")
      fh.setFormatter(
          TaskFormatter(
              "%(asctime)s - %(task_id)s - %(task_name)s - %(name)s - %(levelname)s - %(message)s"
          )
      )
      logger.addHandler(fh)
  
imports: import os, sys
  import logging
  from celery import Celery
  from celery.signals import after_setup_task_logger
  from celery.app.log import TaskFormatter
  from django.conf import settings
label_desc: Use image node_id 1 for calling a global function with example usage: setup_task_logger(logger) without return types