code: def test_remove_condition():
      # Arrange
      check = (
          DummyCheck()
          .add_condition("condition A", lambda r: True)
          .add_condition("condition B", lambda r: False)
          .add_condition(
              "condition C",
              lambda r: ConditionResult(ConditionCategory.PASS),
          )
      )
  
      # Act & Assert
      check.remove_condition(1)
      assert_that(
          check._conditions.values(),
          has_items(
              has_property("name", "condition A"),
              has_property("name", "condition C"),
          ),
      )
      check.remove_condition(0)
      assert_that(
          check._conditions.values(),
          has_items(has_property("name", "condition C")),
      )
  
imports: import numpy
  import pandas
  from hamcrest import *
  from deepchecks import __version__
  from deepchecks.core import BaseCheck, CheckResult, ConditionResult
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.tabular import Context, TrainTestCheck
label_desc: Use image node_id 6 for calling a global function with example usage: test_remove_condition() without return types