code: def test_not_passing_condition():
      # Arrange
      df = pd.DataFrame(
          {
              "foo": ["a", "b", np.nan, None],
              "bar": [None, "a", "b", "a"],
          }
      )
      check = PercentOfNulls().add_condition_percent_of_nulls_not_greater_than(
          0.01
      )
      # Act
      check_result = check.run(df)
      conditions_results = check.conditions_decision(check_result)
  
      assert_that(
          conditions_results,
          has_items(
              equal_condition_result(
                  is_pass=False,
                  details="Found 2 columns with ratio of nulls above threshold: "
                  "\n{'foo': '50%', 'bar': '25%'}",
                  name="Percent of null values in each column is not greater than 1%",
              )
          ),
      )
  
file_path: deepchecks/tests/tabular/checks/integrity/percent_of_nulls_test.py
imports: import numpy
  import pandas
  from hamcrest import *
  from deepchecks.tabular.checks.data_integrity import PercentOfNulls
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 8 for calling a global function with example usage: test_not_passing_condition() without return types