code: def _get_all_category_scorer(
      self, all_category_scorer_factory, corpus, use_metadata
  ) -> AllCategoryScorer:
      if all_category_scorer_factory is None:
          all_category_scorer_factory = (
              lambda corpus: AllCategoryScorerGMeanL2(
                  corpus=corpus, non_text=use_metadata
              )
          )
      return all_category_scorer_factory(corpus).set_non_text(
          non_text=use_metadata
      )
  
file_path: scattertext/scattertext/categorytable/category_table_maker.py
imports: import json
  import types
  from _bisect import bisect_left
  from typing import Optional, Union, Callable
  import numpy
  import pandas
  from scattertext.TermDocMatrix import TermDocMatrix
  from scattertext.all_category_scorers.gmean_l2_freq_associator import AllCategoryScorerGMeanL2
  from scattertext.all_category_scorers.all_category_scorer import AllCategoryScorer
  from scattertext.graphs.ComponentDiGraphHTMLRenderer import GraphRenderer
  from scattertext.viz.HTMLSemioticSquareViz import ClickableTerms
label_desc: Use image node_id 2 for calling the CategoryTableMaker obj's underlying member method code with example usage: obj._get_all_category_scorer(all_category_scorer_factory, corpus, use_metadata) and returns: all_category_scorer_factory