docstr: Returns a topic probability distribution for documents
  with primary topic that is one of <topic_ids> and with doc_id in <doc_ids>.
  
  If no topic_ids or doc_ids are provided, then topic distributions for all documents
  are returned (which equivalent to the output of get_document_topic_distribution).
  
  Args:
      topic_ids(list of ints): list of topid IDs where each id is in the range
                               of range(self.n_topics).
      doc_ids (list of ints): list of document IDs where each id is an index
                              into self.doctopics
  Returns:
      np.ndarray: Each row is the topic probability distribution of a document.
                  Array is sorted in the order returned by self.get_docs.
docstr_tok: ["Returns","a","topic","probability","distribution","for","documents","with","primary","topic","that","is","one","of","<","topic_ids",">","and","with","doc_id","in","<","doc_ids",">",".","If","no","topic_ids","or","doc_ids","are","provided",",","then","topic","distributions","for","all","documents","are","returned","(","which","equivalent","to","the","output","of","get_document_topic_distribution",")",".","Args",":","topic_ids","(","list","of","ints",")",":","list","of","topid","IDs","where","each","id","is","in","the","range","of","range","(","self.n_topics",")",".","doc_ids","(","list","of","ints",")",":","list","of","document","IDs","where","each","id","is","an","index","into","self.doctopics","Returns",":","np.ndarray",":","Each","row","is","the","topic","probability","distribution","of","a","document",".","Array","is","sorted","in","the","order","returned","by","self.get_docs","."]
code: def get_doctopics(self, topic_ids=[], doc_ids=[]):
      """
      Returns a topic probability distribution for documents
      with primary topic that is one of <topic_ids> and with doc_id in <doc_ids>.
  
      If no topic_ids or doc_ids are provided, then topic distributions for all documents
      are returned (which equivalent to the output of get_document_topic_distribution).
  
      Args:
          topic_ids(list of ints): list of topid IDs where each id is in the range
                                   of range(self.n_topics).
          doc_ids (list of ints): list of document IDs where each id is an index
                                  into self.doctopics
      Returns:
          np.ndarray: Each row is the topic probability distribution of a document.
                      Array is sorted in the order returned by self.get_docs.
  
      """
      docs = self.get_docs(topic_ids=topic_ids, doc_ids=doc_ids)
      return np.array(
          [self.doc_topics[idx] for idx in [x["doc_id"] for x in docs]]
      )
  
imports: import time
  from ..None import utils
  from ..imports import *
  from .None import preprocessor
  from .None import textutils
label_desc: Use image node_id 12 for calling the TopicModel obj's underlying member method code with example usage: obj.get_doctopics(topic_ids, doc_ids) and returns: np