code: def _test_featurizations(self, g, use_cols, targets, name, kind, df):
      with warnings.catch_warnings():
          warnings.filterwarnings("ignore", category=UserWarning)
          for cardinality in [2, 200]:
              for use_ngram in [True, False]:
                  for use_col in use_cols:
                      for target in targets:
                          logger.debug("*" * 90)
                          value = [
                              cardinality,
                              use_ngram,
                              target,
                              use_col,
                          ]
                          names = "cardinality, use_ngram, target, use_col".split(
                              ", "
                          )
                          logger.debug(f"{value}")
                          print(f"{[k for k in zip(names, value)]}")
                          logger.debug("-" * 80)
                          if kind == "edges" and cardinality == 2:
                              # GapEncoder is set to fail on small documents like our edge_df..., so we skip
                              continue
                          g2 = g.featurize(
                              kind=kind,
                              X=use_col,
                              y=target,
                              model_name=model_avg_name,
                              use_scaler=None,
                              use_scaler_target=None,
                              use_ngrams=use_ngram,
                              min_df=0.0,
                              max_df=1.0,
                              cardinality_threshold=cardinality,
                              cardinality_threshold_target=cardinality,
                          )
  
                          self.cases_test_graph(
                              g2,
                              name=name,
                              value=value,
                              kind=kind,
                              df=df,
                          )
  
imports: import datetime
  import graphistry
  import logging
  import numpy
  import pandas
  from typing import Any
  import pytest
  import unittest
  import warnings
  from graphistry.feature_utils import process_dirty_dataframes, process_nodes_dataframes, resolve_feature_engine, lazy_import_has_min_dependancy, lazy_import_has_dependancy_text, FastEncoder
  from graphistry.features import topic_model, ngrams_model
  from graphistry.constants import SCALERS
label_desc: Use image node_id 5 for calling the TestFeatureMethods obj's underlying member method code with example usage: obj._test_featurizations(g, use_cols, targets, name, kind, df) without return types