code: def _remove_plugin(self, plugin):
      def remove(wrappers):
          for i, method in enumerate(wrappers):
              if method.plugin == plugin:
                  del wrappers[i]
                  return True
  
      if remove(self._wrappers) is None:
          if remove(self._nonwrappers) is None:
              raise ValueError("plugin %r not found" % (plugin,))
  
imports: import inspect
  import sys
  import warnings
  from .callers import _legacymulticall, _multicall
label_desc: Use image node_id 5 for calling the _HookCaller obj's underlying member method code with example usage: obj._remove_plugin(plugin) and returns: True