code: def __setattr__(self, key, value):
      if key in self.__dict__:
          self.__dict__[key] = value
      else:
          self[key] = value
  
file_path: PaddleHub/modules/image/classification/pplcnet_x2_0_imagenet/utils.py
imports: import argparse
  import copy
  import os
  import yaml
label_desc: Use image node_id 2 for calling the AttrDict obj's underlying member method code with example usage: obj.__setattr__(key, value) without return types