code: def helper_test_df_and_result(
      df,
      expected_result_value,
      ignore_columns=None,
      ignore_nan=True,
      with_display=True,
  ):
      # Act
      result = IsSingleValue(
          ignore_columns=ignore_columns, ignore_nan=ignore_nan
      ).run(df, with_display=with_display)
  
      # Assert
      assert_that(result.value, equal_to(expected_result_value))
      return result
  
imports: import numpy
  import pandas
  from hamcrest import assert_that, calling, equal_to, greater_than, has_items, has_length, raises
  from deepchecks.core.errors import DatasetValidationError, DeepchecksValueError
  from deepchecks.tabular.checks.data_integrity.is_single_value import IsSingleValue
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: helper_test_df_and_result(df, expected_result_value, ignore_columns, ignore_nan, with_display) and returns: result