code: def to_dict(self):
      return {
          "mdsDat": self.topic_coordinates.to_dict(orient="list"),
          "tinfo": self.topic_info.to_dict(orient="list"),
          "token.table": self.token_table.to_dict(orient="list"),
          "R": self.R,
          "lambda.step": self.lambda_step,
          "plot.opts": self.plot_opts,
          "topic.order": self.topic_order,
      }
  
imports: import json
  import logging
  import numpy
  import pandas
  from collections import namedtuple
  from joblib import Parallel, delayed, cpu_count
  from scipy.stats import entropy
  from scipy.spatial.distance import pdist, squareform
  from sklearn.manifold import MDS, TSNE
  from pyLDAvis.utils import NumPyEncoder
label_desc: Use image node_id 2 for calling the PreparedData obj's underlying member method code with example usage: obj.to_dict() and returns: dict