code: def _verify_category(self, category):
      if category not in self.corpus_.get_categories():
          raise Exception("Category %s is not in corpus." % category)
      if category in self.category_embeddings_:
          raise Exception(
              "You have already set embeddings by running set_embeddings or set_embeddings_model."
          )
  
imports: import itertools
  import re
  import warnings
  import numpy
  import pandas
  import scipy
  from sklearn.metrics.pairwise import cosine_similarity
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.representations.Word2VecFromParsedCorpus import Word2VecDefault
label_desc: Use image node_id 2 for calling the CategoryEmbeddingsResolver obj's underlying member method code with example usage: obj._verify_category(category) without return types