code: def test_check_type_correct_data():
      """Test distribution types on some correct/incorrectly distributed data."""
      check_type_helper(
          Bin1d,
          Keyword_BINARY,
          [Keyword_AUTO, Keyword_BINARY, Keyword_CLASSIFICATION],
          [Keyword_CATEGORY, None, "bogus"],
      )
      check_type_helper(
          Cat,
          Keyword_CATEGORY,
          [Keyword_AUTO, Keyword_CATEGORY, Keyword_CLASSIFICATION],
          [Keyword_BINARY, None, "bogus"],
      )
      check_type_helper(
          Cont1d,
          Keyword_CONTINUOUS,
          [Keyword_AUTO, Keyword_CONTINUOUS, None],
          [
              Keyword_BINARY,
              Keyword_CATEGORY,
              Keyword_CLASSIFICATION,
              "bogus",
          ],
      )
      check_type_helper(
          Cont2d,
          Keyword_CONTINUOUS,
          [Keyword_AUTO, Keyword_CONTINUOUS, None],
          [
              Keyword_BINARY,
              Keyword_CATEGORY,
              Keyword_CLASSIFICATION,
              "bogus",
          ],
      )
      # Bin2d is not interpretable as binary 2d, nor continuous, because it is so ambiguous.
      check_type_helper(
          Bin2d,
          None,
          [],
          [
              Keyword_BINARY,
              Keyword_CATEGORY,
              Keyword_CLASSIFICATION,
              Keyword_CONTINUOUS,
              None,
              "bogus",
          ],
      )
  
      with pytest.raises(ValueError) as exc:
          prep = FloatTransformer(transformer=Keyword_AUTO)
          prep.fit(Bin2d)
          assert str(exc.value) == _TYPE_COMPLIANCE_ERROR.format(
              Keyword_AUTO, prep.inferred_type_
          )
  
imports: import sys
  import pytest
  import numpy
  import pandas
  from sklearn.utils import estimator_checks
  from fairlearn.adversarial import AdversarialFairnessClassifier, AdversarialFairnessRegressor
  from fairlearn.adversarial._adversarial_mitigation import _AdversarialFairness
  from fairlearn.adversarial._preprocessor import FloatTransformer
  from fairlearn.adversarial._constants import _TYPE_COMPLIANCE_ERROR
  from .helper import get_instance, generate_data_combinations, cols, Bin2d, Bin1d, Cat, Cont2d, Cont1d, BCE, CCE, MSE, Keyword_CATEGORY, Keyword_BINARY, Keyword_CONTINUOUS, Keyword_CLASSIFICATION, Keyword_AUTO, KeywordToClass
label_desc: Use image node_id 19 for calling a global function with example usage: test_check_type_correct_data() without return types