code: def test_percent_of_nulls_without_display():
      # Arrange
      df = pd.DataFrame(
          {
              "foo": ["a", "b", np.nan, None],
              "bar": [None, "a", "b", "a"],
          }
      )
      # Act
      result = PercentOfNulls().run(df, with_display=False)
      # Assert
      assert_that(result.display, has_length(equal_to(0)))
      assert_that(result.value, has_length(2))
      assert_that(result.value.iloc[0, 0], equal_to(0.5))
      assert_that(result.value.iloc[1, 0], equal_to(0.25))
  
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 2 for calling a global function with example usage: test_percent_of_nulls_without_display() without return types