code: def test_doctor(capsys):
      mlflow.doctor()
      captured = capsys.readouterr()
      assert f"MLflow version: {mlflow.__version__}" in captured.out
  
imports: from unittest import mock
  import mlflow
label_desc: Use image node_id 1 for calling a global function with example usage: test_doctor(capsys) without return types