def METHOD_NAME(logger: logging.Logger):
    for p in Process().children(recursive=True):
        logger.debug(
            "Found child process: "
            f"pid={p.pid}, name={p.name()}, status={p.status()}, cmdline={p.cmdline()}"
        )
        if _process_is_resource_tracker(p):
            # This process will clean itself up, but no other processes should be running at
            # this time.
            logger.debug(f"Ignoring resource_tracker process: {p.pid}")
            continue
        if _process_is_windows_self_removal(p):
            logger.debug(f"Ignoring self removal process: {p.pid}")
            continue
        logger.warning(f"Killing hung child process: {p.pid}")
        p.kill()