code: def configure_artifact_log(log):
      # If the artifact is off by default, then it should only be logged when explicitly
      # enabled; set propagate to False so that this artifact is not propagated
      # to its ancestor logger
      if log_registry.is_off_by_default(log.artifact_name):
          log.propagate = False
  
      # enable artifact logging when explicitly enabled
      if log_state.is_artifact_enabled(log.artifact_name):
          log.setLevel(logging.DEBUG)
          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 6 for calling a global function with example usage: configure_artifact_log(log) without return types