class_docstr: nphi (n_docs by n_topics)
class_docstr_tok: ["nphi","(","n_docs","by","n_topics",")"]
code: def update_from(self, G, mult):
      new = G.nodes["doc"].data["nphi"] * mult
      return self.update(new.to(self.device))
  
imports: import collections
  import functools
  import io
  import os
  import warnings
  import dgl
  import numpy
  import scipy
  import torch
label_desc: Use image node_id 2 for calling the DocData obj's underlying member method code with example usage: obj.update_from(G, mult) and returns: self