code: def test_plugin_doesnot_have_required_attrib():
      class DummyPlugin:
          ...  # pylint: disable=pointless-statement
  
      dummy_plugin = DummyPlugin()
      plugin_manager = DeploymentPlugins()
      plugin_manager.registry["dummy"] = dummy_plugin
      with pytest.raises(
          MlflowException,
          match="Plugin registered for the target dummy",
      ):
          plugin_manager["dummy"]
  
imports: import os
  from unittest import mock
  import pytest
  from mlflow import deployments
  from mlflow.deployments.plugin_manager import DeploymentPlugins
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 12 for calling a global function with example usage: test_plugin_doesnot_have_required_attrib() without return types