code: def set_logger_filters(logger, rank=None):
      for handler in logger.handlers:
          handler.addFilter(RankZeroFilter(rank))
  
file_path: coremltools/coremltools/optimize/torch/_logging.py
imports: import logging
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: set_logger_filters(logger, rank) without return types