code: def test_probability_histogram(unittest, test_data):
      import dtale.views as views
  
      with app.test_client() as c:
          with ExitStack():
              build_data_inst({c.port: test_data})
              build_dtypes(
                  {c.port: views.build_dtypes_state(test_data)}
              )
              build_settings({c.port: {}})
              response = c.get(
                  "/dtale/column-analysis/{}".format(c.port),
                  query_string=dict(col="foo", density="true"),
              )
              response_data = response.get_json()
              assert response.status_code == 200
              assert (
                  "np.histogram(s['foo'], density=True)"
                  in response_data["code"]
              )
  
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 2 for calling a global function with example usage: test_probability_histogram(unittest, test_data) without return types