code: def main():
      shisei = _parse_geutenberg(
          "http://www.gutenberg.org/files/31617/31617-0.txt"
      )
      horadanshaku = _parse_geutenberg(
          "http://www.gutenberg.org/files/34084/34084-0.txt"
      )
      df = pd.DataFrame(
          {
              "text": [shisei, horadanshaku],
              "title": ["Shisei", "Horadanshaku tabimiyage"],
              "author": ["Akutagawa Ryunosuke", "Kuni Sasaki"],
          }
      )
  
      df["text"] = df["text"].apply(st.japanese_nlp)
      corpus = st.CorpusFromParsedDocuments(
          df, category_col="title", parsed_col="text"
      ).build()
      html = st.produce_scattertext_explorer(
          corpus,
          category="Shisei",
          category_name="Shisei",
          not_category_name="Horadanshaku tabimiyage",
          minimum_term_frequency=5,
          width_in_pixels=1000,
          metadata=df["title"] + " by " + df["author"],
          asian_mode=True,
      )
      open("./demo_japanese.html", "w").write(html)
      print("Open ./demo_japanese.html in Chrome or Firefox.")
  
imports: import pandas
  from urllib.request import urlopen
  import scattertext
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types