code: def test_check_type_faulty_data():
      """Check distribution types on slightly faulty datasets."""
      notBin1d = Bin1d.copy()
      notBin1d[0] = 0.1
      check_type_helper(
          notBin1d,
          Keyword_CONTINUOUS,
          [Keyword_AUTO, Keyword_CONTINUOUS],
          [Keyword_BINARY, Keyword_CATEGORY, Keyword_CLASSIFICATION],
      )
      notCat = Cat.copy()
      notCat[0, 0:2] = 1
      # Special case where values are still {0,1}, but sums arent 1. Then we also
      # reject continuous
      check_type_helper(
          notCat,
          None,
          [],  # Auto doesnt work on ambiguous
          [
              Keyword_BINARY,
              Keyword_CATEGORY,
              Keyword_CLASSIFICATION,
              Keyword_CONTINUOUS,
              Keyword_AUTO,
          ],
      )
      notCat[0, 0] = 0.5
      check_type_helper(
          notCat,
          Keyword_CONTINUOUS,
          [Keyword_AUTO, Keyword_CONTINUOUS],  # Auto does work here
          [Keyword_BINARY, Keyword_CATEGORY, Keyword_CLASSIFICATION],
      )
      notCat[0, 1] = 0.5
      notCat[
          0, 2:
      ] = 0.0  # Special case because now first row sums to one but is not one-hot
      check_type_helper(
          notCat,
          Keyword_CONTINUOUS,
          [Keyword_AUTO, Keyword_CONTINUOUS],  # Auto does work here
          [Keyword_BINARY, Keyword_CATEGORY, Keyword_CLASSIFICATION],
      )
  
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 20 for calling a global function with example usage: test_check_type_faulty_data() without return types