code: def _register_bench_extension(self, plugin_name, plugin_instance):
          
          for attr in plugin_instance.get_bench_api().keys():
              if hasattr(self.bench, attr):
                  raise PluginException("Attribute {} already exists in bench! Unable to add "
                                        "plugin {}.".format(attr, plugin_name))
              setattr(self.bench, attr, plugin_instance.get_bench_api().get(attr))
docs: Register a bench extension.
  
          :param plugin_name: Plugin name
          :param plugin_instance: PluginBase
          :return: Nothing