code: def create(self, name, plugin_data_dir, gzip=False):
          
          self.client.api.create_plugin(name, plugin_data_dir, gzip)
          return self.get(name)
docs: Create a new plugin.
  
              Args:
                  name (string): The name of the plugin. The ``:latest`` tag is
                      optional, and is the default if omitted.
                  plugin_data_dir (string): Path to the plugin data directory.
                      Plugin data directory must contain the ``config.json``
                      manifest file and the ``rootfs`` directory.
                  gzip (bool): Compress the context using gzip. Default: False
  
              Returns:
                  (:py:class:`Plugin`): The newly created plugin.