class_docstr: A plugin definition.
  
  Args:
      directory: the directory containing the plugin
      metadata: a plugin metadata dict
class_docstr_tok: ["A","plugin","definition",".","Args",":","directory",":","the","directory","containing","the","plugin","metadata",":","a","plugin","metadata","dict"]
code: def __init__(self, directory, metadata):
      self._directory = directory
      self._metadata = metadata
      self._validate()
  
imports: import os
  import yaml
  import eta.core.serial
  import fiftyone
label_desc: Use image node_id 1 to create a new PluginDefinition object from inherited base classes: object with example: obj = PluginDefinition(directory, metadata)