docstr: Calls the expected operations for generating an Experiment proto.
docstr_tok: ["Calls","the","expected","operations","for","generating","an","Experiment","proto","."]
code: def _experiment_from_metadata(
      self, *, include_metrics=True, hparams_limit=None
  ):
      """Calls the expected operations for generating an Experiment proto."""
      ctxt = backend_context.Context(self._mock_tb_context)
      request_ctx = context.RequestContext()
      return ctxt.experiment_from_metadata(
          request_ctx,
          "123",
          include_metrics,
          ctxt.hparams_metadata(request_ctx, "123"),
          ctxt.hparams_from_data_provider(
              request_ctx, "123", limit=hparams_limit
          ),
          hparams_limit,
      )
  
imports: import operator
  from unittest import mock
  import tensorflow
  from google.protobuf import text_format
  from tensorboard import context
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.hparams import api_pb2
  from tensorboard.plugins.hparams import backend_context
  from tensorboard.plugins.hparams import metadata
  from tensorboard.plugins.hparams import plugin_data_pb2
label_desc: Use image node_id 5 for calling the BackendContextTest obj's underlying member method code with example usage: obj._experiment_from_metadata() and returns: ctxt