Returns the plugin, if possible.

    Args:
      context: The TBContext flags.

    Returns:
      A InteractiveInferencePlugin instance or None if it couldn't be loaded.

def load(self, context):
    """Returns the plugin, if possible.

    Args:
      context: The TBContext flags.

    Returns:
      A InteractiveInferencePlugin instance or None if it couldn't be loaded.
    """
    try:
      # pylint: disable=g-import-not-at-top,unused-import
      import tensorflow
    except ImportError:
      return
    # pylint: disable=line-too-long,g-import-not-at-top
    from tensorboard.plugins.interactive_inference.interactive_inference_plugin import InteractiveInferencePlugin
    return InteractiveInferencePlugin(context)