code: def is_active(self):
      
      if not self._context.multiplexer:
        return False
      scalars_plugin = self._get_scalars_plugin()
      if not scalars_plugin or not scalars_plugin.is_active():
        return False
      return bool(self._context.multiplexer.PluginRunToTagToContent(
          metadata.PLUGIN_NAME))
docs: Returns True if the hparams plugin is active.
  
      The hparams plugin is active iff there is a tag with
      the hparams plugin name as its plugin name and the scalars plugin is
      registered and active.