class_docstr: Base class for encoders.
docstr: Upgrade old state dicts to work with newer code.
docstr_tok: ["Upgrade","old","state","dicts","to","work","with","newer","code","."]
code: def upgrade_state_dict_named(self, state_dict, name):
      """Upgrade old state dicts to work with newer code."""
      return state_dict
  
file_path: fairseq/fairseq/models/fairseq_encoder.py
imports: from typing import Dict, List, NamedTuple, Optional
  import torch
  import torch.nn
  from torch import Tensor
label_desc: Use image node_id 7 for calling the FairseqEncoder obj's underlying member method code with example usage: obj.upgrade_state_dict_named(state_dict, name) and returns: state_dict