class_docstr: nphi (n_docs by n_topics)
class_docstr_tok: ["nphi","(","n_docs","by","n_topics",")"]
code: def prepare_graph(self, G, key="Elog"):
      G.nodes["doc"].data[key] = getattr(self, "_" + key)().to(G.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 1 for calling the DocData obj's underlying member method code with example usage: obj.prepare_graph(G, key) without return types