code: def test_get_column_analysis_word_value_count(unittest):
      df = pd.DataFrame(
          dict(a=["a b c", "d e f", "g h i"], b=[3, 4, 5])
      )
      with app.test_client() as c:
          build_data_inst({c.port: df})
          settings = {c.port: {}}
          build_settings(settings)
          response = c.get(
              "/dtale/column-analysis/{}".format(c.port),
              query_string=dict(col="a", type="word_value_counts"),
          )
          response_data = response.get_json()
          unittest.assertEqual(
              response_data["labels"],
              ["a", "b", "c", "d", "e", "f", "g", "h", "i"],
          )
          response = c.get(
              "/dtale/column-analysis/{}".format(c.port),
              query_string=dict(
                  col="a",
                  type="word_value_counts",
                  ordinalCol="b",
                  ordinalAgg="mean",
                  cleaner="underscore_to_space",
              ),
          )
          response_data = response.get_json()
          unittest.assertEqual(
              response_data["ordinal"], [3, 3, 3, 4, 4, 4, 5, 5, 5]
          )
  
          response = c.get(
              "/dtale/column-analysis/{}".format(c.port),
              query_string=dict(
                  col="a",
                  type="word_value_counts",
                  ordinalCol="b",
                  ordinalAgg="pctsum",
              ),
          )
          response_data = response.get_json()
          unittest.assertEqual(
              response_data["ordinal"],
              [
                  0.083333,
                  0.083333,
                  0.083333,
                  0.111111,
                  0.111111,
                  0.111111,
                  0.138889,
                  0.138889,
                  0.138889,
              ],
          )
  
file_path: dtale/tests/dtale/test_column_analysis.py
imports: import mock
  import numpy
  import os
  import pandas
  import pytest
  import dtale.global_state
  from tests.dtale.test_views import app
  from tests import ExitStack
  from tests.dtale import build_data_inst, build_settings, build_dtypes
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_column_analysis_word_value_count(unittest) without return types