class_docstr_tok: []
code: def to_dict(self, remove_source=False, remove_null=True):
      return filter_pretrained_cfg(
          asdict(self),
          remove_source=remove_source,
          remove_null=remove_null,
      )
  
file_path: pytorch-image-models/timm/models/_pretrained.py
imports: import copy
  from collections import deque, defaultdict
  from dataclasses import dataclass, field, replace, asdict
  from typing import Any, Deque, Dict, Tuple, Optional, Union
label_desc: Use image node_id 2 for calling the PretrainedCfg obj's underlying member method code with example usage: obj.to_dict(remove_source, remove_null) and returns: filter_pretrained_cfg