class_docstr: Vision Transformer as per https://arxiv.org/abs/2010.11929.
class_docstr_tok: ["Vision","Transformer","as","per","https",":","\/\/arxiv.org\/abs\/2010.11929","."]
code: def from_config(cls, config):
      config = copy.deepcopy(config)
      config.pop("name")
      config.pop("heads", None)
      return cls(**config)
  
imports: import copy
  import logging
  import math
  from collections import OrderedDict
  from functools import partial
  from typing import Dict, List, Mapping, NamedTuple, Union
  import torch
  import torch.nn
  from classy_vision.models import ClassyModel, register_model
  from .lecun_normal_init import lecun_normal_init
label_desc: Use image node_id 3 for calling the VisionTransformer obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls