code: def test_assertion_step_just_logs_with_pipeline_in_prod(self):
      data_inputs = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
      expected_outputs = data_inputs * 2
      dact = DACT(data_inputs, None, expected_outputs)
      p = Pipeline([SomeAssertionStep()])
      context = CX(execution_phase=ExecutionPhase.PROD)
      try:
          p = p.handle_fit(dact, context=context)
      except AssertionError:
          pass
  
      with self.assertLogs() as captured:
          p.handle_predict(dact, context=context)
  
          # assert that the log still at least contains the expected message:
          self.assertIn("Assertion failed", captured.output[0])
  
imports: from unittest import TestCase
  import numpy
  import pytest
  from neuraxle.base import AssertExpectedOutputIsNone, BaseStep
  from neuraxle.base import ExecutionContext
  from neuraxle.base import ExecutionPhase, HandleOnlyMixin, NonFittableMixin
  from neuraxle.data_container import DataContainer
  from neuraxle.pipeline import Pipeline
label_desc: Use image node_id 2 for calling the TestAssertionMethodInSteps obj's underlying member method code with example usage: obj.test_assertion_step_just_logs_with_pipeline_in_prod() without return types