code: def get_background_frequency_df(frequency_path=None):
      if frequency_path:
          unigram_freq_table_buf = open(frequency_path)
      else:
          unigram_freq_table_buf = StringIO(
              pkgutil.get_data(
                  "scattertext", "data/count_1w.txt"
              ).decode("utf-8")
          )
      to_ret = (
          pd.read_csv(
              unigram_freq_table_buf,
              sep="\t",
              names=["word", "background"],
          )
          .sort_values(ascending=False, by="background")
          .drop_duplicates(["word"])
          .set_index("word")
      )["background"]
      return to_ret
  
file_path: scattertext/scattertext/frequencyreaders/DefaultBackgroundFrequencies.py
imports: import pkgutil
  from io import StringIO
  import pandas
  from scipy.stats import rankdata
label_desc: Use image node_id 1 for calling the DefaultBackgroundFrequencies obj's underlying member method code with example usage: obj.get_background_frequency_df(frequency_path) and returns: to_ret