code: def test_warning_import(self, caplog):
      with patch.dict("sys.modules", {"mdlp.discretization": None}):
          reload(discretiser_strategy)
      reload(discretiser_strategy)
      assert "MDLP was not imported successfully" in caplog.text
  
file_path: causalnex/tests/discretiser/test_mdlp.py
imports: from importlib import reload
  import numpy
  import pytest
  from mock import patch
  from causalnex.discretiser import discretiser_strategy
  from causalnex.discretiser.discretiser_strategy import MDLPSupervisedDiscretiserMethod
label_desc: Use image node_id 3 for calling the TestMDLP obj's underlying member method code with example usage: obj.test_warning_import(caplog) without return types