code: def test_experiment_from_data_provider_include_metrics(self):
      self._mock_tb_context.data_provider.list_tensors.side_effect = (
          None
      )
      self._hyperparameters = provider.ListHyperparametersResult(
          hyperparameters=[],
          session_groups=[
              provider.HyperparameterSessionGroup(
                  root=provider.HyperparameterSessionRun(
                      experiment_id="exp", run=""
                  ),
                  sessions=[
                      provider.HyperparameterSessionRun(
                          experiment_id="exp", run="session_1"
                      ),
                  ],
                  hyperparameter_values=[],
              ),
          ],
      )
  
      with self.subTest("False"):
          response = self._experiment_from_metadata(
              include_metrics=False
          )
          self.assertEmpty(response.metric_infos)
  
      with self.subTest("True"):
          response = self._experiment_from_metadata(
              include_metrics=True
          )
          self.assertLen(response.metric_infos, 4)
  
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 24 for calling the BackendContextTest obj's underlying member method code with example usage: obj.test_experiment_from_data_provider_include_metrics() without return types