code: def _get_logger(decorated: Decorated) -> Logger:
      module = getmodule(decorated)
      return module.__dict__.get(
          _LOGGER_VAR_NAME, logging.getLogger(module.__name__)  # type: ignore
      )
  
file_path: superset/tests/common/logger_utils.py
imports: from __future__ import annotations
  import logging
  from functools import wraps
  from inspect import getcallargs, getmembers, getmodule, isclass, isfunction, ismethod, signature, Signature
  from logging import Logger
  from typing import Any, Callable, cast, Union
label_desc: Use image node_id 3 for calling a global function with example usage: _get_logger(decorated) and returns: module