class_docstr: Context that represents a plugin and the Python objects it creates.
  
  Args:
      plugin_definition: the :class:`fiftyone.plugins.PluginDefinition` for
          the plugin
class_docstr_tok: ["Context","that","represents","a","plugin","and","the","Python","objects","it","creates",".","Args",":","plugin_definition",":","the",":","class",":","`","fiftyone.plugins.PluginDefinition","`","for","the","plugin"]
docstr: Registers all operators defined by the plugin on this context.
  
  .. note::
  
      Any errors are logged rather than being raised.
docstr_tok: ["Registers","all","operators","defined","by","the","plugin","on","this","context",".","..","note",":",":","Any","errors","are","logged","rather","than","being","raised","."]
code: def register_all(self):
      """Registers all operators defined by the plugin on this context.
  
      .. note::
  
          Any errors are logged rather than being raised.
      """
      self.dispose_all()
  
      try:
          module_dir = self.plugin_definition.directory
          module_path = os.path.join(module_dir, INIT_FILENAME)
          if not os.path.isfile(module_path):
              return
  
          module_name = os.path.relpath(
              module_dir, fo.config.plugins_dir
          ).replace("/", ".")
          spec = importlib.util.spec_from_file_location(
              module_name, module_path
          )
          module = importlib.util.module_from_spec(spec)
          sys.modules[module.__name__] = module
          spec.loader.exec_module(module)
          module.register(self)
      except:
          logger.warning(
              f"Failed to register operators for plugin {self.name}"
          )
          self.errors.append(traceback.format_exc())
  
imports: import importlib
  import logging
  import os
  import sys
  import traceback
  import fiftyone
  import fiftyone.plugins
  from fiftyone.operators.decorators import plugins_cache
  from fiftyone.operators.operator import Operator
label_desc: Use image node_id 7 for calling the PluginContext obj's underlying member method code with example usage: obj.register_all() without return types