code: def test_categorical_expectations(batch):
      categorical_expectations(
          "column",
          {
              "n_distinct": 1,
              "p_distinct": 0.1,
              "value_counts_without_nan": {"val1": 1, "val2": 2},
          },
          batch,
      )
      batch.expect_column_values_to_be_in_set.assert_called_once_with(
          "column", {"val1", "val2"}
      )
  
file_path: ydata-profiling/tests/unit/test_ge_integration_expectations.py
imports: from unittest.mock import Mock, patch
  import pytest
  from ydata_profiling.model.expectation_algorithms import categorical_expectations, datetime_expectations, file_expectations, generic_expectations, image_expectations, numeric_expectations, path_expectations, url_expectations
label_desc: Use image node_id 7 for calling a global function with example usage: test_categorical_expectations(batch) without return types