code: def _reset_logs():
      # reset all registered logs
      for log_qname in log_registry.get_log_qnames():
          log = logging.getLogger(log_qname)
          log.setLevel(logging.WARNING)
          log.propagate = False
          _clear_handlers(log)
  
      # reset all artifact and child logs
      for artifact_log_qname in itertools.chain(
          log_registry.get_artifact_log_qnames(),
          log_registry.get_child_log_qnames(),
      ):
          log = logging.getLogger(artifact_log_qname)
          log.setLevel(logging.NOTSET)
          log.propagate = True
  
imports: import functools
  import itertools
  import logging
  import os
  import re
  from dataclasses import dataclass, field
  from importlib import __import__
  from typing import Dict, List, Optional, Set, Union
  from weakref import WeakSet
  import torch._guards
  import torch.distributed
label_desc: Use image node_id 20 for calling a global function with example usage: _reset_logs() without return types