code: def is_plugin(plugin):
      
      try:
          return isinstance(plugin, Plugin) or issubclass(plugin, Plugin)
      except TypeError:
          return False
docs: Returns true if the plugin implements the `Plugin` interface.
  
      :param plugin: The plugin to check.
      :returns: True if plugin, False otherwise.
      :rtype: bool