code: def test_experiment_from_tags_with_hparams_limit_returns_differed_hparams_first(
      self,
  ):
      experiment = """
              name: 'Test experiment'
              hparam_infos: {
                name: 'batch_size'
                type: DATA_TYPE_FLOAT64
                differs: false
              }
              hparam_infos: {
                name: 'lr'
                type: DATA_TYPE_FLOAT64
                differs: true
              }
              hparam_infos: {
                name: 'use_batch_norm'
                type: DATA_TYPE_BOOL
                differs: false
              }
              hparam_infos: {
                name: 'model_type'
                type: DATA_TYPE_STRING
                differs: true
              }
          """
      t = provider.TensorTimeSeries(
          max_step=0,
          max_wall_time=0,
          plugin_content=self._serialized_plugin_data(
              DATA_TYPE_EXPERIMENT, experiment
          ),
          description="",
          display_name="",
      )
      self._mock_tb_context.data_provider.list_tensors.side_effect = (
          None
      )
      self._mock_tb_context.data_provider.list_tensors.return_value = {
          "train": {metadata.EXPERIMENT_TAG: t}
      }
      expected_exp = """
              name: 'Test experiment'
              hparam_infos: {
                name: 'lr'
                type: DATA_TYPE_FLOAT64
                differs: true
              },
              hparam_infos: {
                name: 'model_type'
                type: DATA_TYPE_STRING
                differs: true
              }
          """
      actual_exp = self._experiment_from_metadata(
          include_metrics=False, hparams_limit=2
      )
      self.assertProtoEquals(expected_exp, actual_exp)
  
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 27 for calling the BackendContextTest obj's underlying member method code with example usage: obj.test_experiment_from_tags_with_hparams_limit_returns_differed_hparams_first() without return types