class_docstr: Code adapted from https://github.com/Alok/rl_implementations/tree/master/reptile.
  A dictionary where the values are Tensors, meant to represent weights of
  a model. This subclass lets you perform arithmetic on weights directly.
class_docstr_tok: ["Code","adapted","from","https",":","\/\/github.com\/Alok\/rl_implementations\/tree\/master\/reptile",".","A","dictionary","where","the","values","are","Tensors",",","meant","to","represent","weights","of","a","model",".","This","subclass","lets","you","perform","arithmetic","on","weights","directly","."]
code: def _prototype(self, other, op):
      if isinstance(other, Number):
          return ParamDict({k: op(v, other) for k, v in self.items()})
      elif isinstance(other, dict):
          return ParamDict({k: op(self[k], other[k]) for k in self})
      else:
          raise NotImplementedError
  
imports: import hashlib
  import operator
  import sys
  from collections import Counter
  from collections import OrderedDict
  from datetime import datetime
  from numbers import Number
  import numpy
  import torch
label_desc: Use image node_id 2 for calling the ParamDict obj's underlying member method code with example usage: obj._prototype(other, op) and returns: ParamDict, ParamDict