code: def convention_speech_iter():
      relative_path = os.path.join(
          "../scattertext/data", "political_data.json"
      )
      try:
          cwd = os.path.dirname(os.path.abspath(__file__))
          path = os.path.join(cwd, relative_path)
          return json.load(open(path))
      except:
          return json.loads(
              pkgutil.get_data("scattertext", relative_path).decode(
                  "utf-8"
              )
          )
  
imports: import json
  import os
  import pkgutil
  import re
  from unittest import TestCase
  import numpy
  import pandas
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.CorpusFromParsedDocuments import CorpusFromParsedDocuments
  from scattertext.WhitespaceNLP import whitespace_nlp
  from scattertext.TermDocMatrixFactory import TermDocMatrixFactory
  from scattertext.test.test_TermDocMat import get_hamlet_docs, get_hamlet_snippet_binary_category
  from scattertext.test.test_corpusFromPandas import get_docs_categories
label_desc: Use image node_id 2 for calling a global function with example usage: convention_speech_iter() and returns: json, json