code: def enable_log(self, log_qnames, log_level):
      if isinstance(log_qnames, str):
          log_qnames = [log_qnames]
      for log_qname in log_qnames:
          self.log_qname_to_level[log_qname] = log_level
  
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 3 for calling the LogState obj's underlying member method code with example usage: obj.enable_log(log_qnames, log_level) without return types