def _mock_all_summary_metadata(self):
    result = {}
    hparams_content = {'exp/session_1': {metadata.SESSION_START_INFO_TAG: self._serialized_plugin_data(DATA_TYPE_SESSION_START_INFO, self.session_1_start_info_)}, 'exp/session_2': {metadata.SESSION_START_INFO_TAG: self._serialized_plugin_data(DATA_TYPE_SESSION_START_INFO, self.session_2_start_info_)}, 'exp/session_3': {metadata.SESSION_START_INFO_TAG: self._serialized_plugin_data(DATA_TYPE_SESSION_START_INFO, self.session_3_start_info_)}}
    scalars_content = {'exp/session_1': {'loss': b'', 'accuracy': b''}, 'exp/session_1/eval': {'loss': b''}, 'exp/session_1/train': {'loss': b''}, 'exp/session_2': {'loss': b'', 'accuracy': b''}, 'exp/session_2/eval': {'loss': b''}, 'exp/session_2/train': {'loss': b''}, 'exp/session_3': {'loss': b'', 'accuracy': b''}, 'exp/session_3/eval': {'loss': b''}, 'exp/session_3xyz/': {'loss2': b''}}
    for (run, tag_to_content) in hparams_content.items():
        result.setdefault(run, {})
        for (tag, content) in tag_to_content.items():
            m = summary_pb2.SummaryMetadata()
            m.data_class = summary_pb2.DATA_CLASS_TENSOR
            m.plugin_data.plugin_name = metadata.PLUGIN_NAME
            m.plugin_data.content = content
            result[run][tag] = m
    for (run, tag_to_content) in scalars_content.items():
        result.setdefault(run, {})
        for (tag, content) in tag_to_content.items():
            m = summary_pb2.SummaryMetadata()
            m.data_class = summary_pb2.DATA_CLASS_SCALAR
            m.plugin_data.plugin_name = scalars_metadata.PLUGIN_NAME
            m.plugin_data.content = content
            result[run][tag] = m
    return result
def _mock_all_summary_metadata(self):
    result = {}
    hparams_content = {'exp/session_1': {metadata.SESSION_START_INFO_TAG: self._serialized_plugin_data(DATA_TYPE_SESSION_START_INFO, self.session_1_start_info_)}, 'exp/session_2': {metadata.SESSION_START_INFO_TAG: self._serialized_plugin_data(DATA_TYPE_SESSION_START_INFO, self.session_2_start_info_)}, 'exp/session_3': {metadata.SESSION_START_INFO_TAG: self._serialized_plugin_data(DATA_TYPE_SESSION_START_INFO, self.session_3_start_info_)}}
    scalars_content = {'exp/session_1': {'loss': b, 'accuracy': b}, 'exp/session_1/eval': {'loss': b}, 'exp/session_1/train': {'loss': b}, 'exp/session_2': {'loss': b, 'accuracy': b}, 'exp/session_2/eval': {'loss': b}, 'exp/session_2/train': {'loss': b}, 'exp/session_3': {'loss': b, 'accuracy': b}, 'exp/session_3/eval': {'loss': b}, 'exp/session_3xyz/': {'loss2': b}}
    for (run, tag_to_content) in hparams_content.items():
        result.setdefault(run, {})
        for (tag, content) in tag_to_content.items():
            m = summary_pb2.SummaryMetadata()
            m.data_class = summary_pb2.DATA_CLASS_TENSOR
            m.plugin_data.plugin_name = metadata.PLUGIN_NAME
            m.plugin_data.content = content
            result[run][tag] = m
    for (run, tag_to_content) in scalars_content.items():
        result.setdefault(run, {})
        for (tag, content) in tag_to_content.items():
            m = summary_pb2.SummaryMetadata()
            m.data_class = summary_pb2.DATA_CLASS_SCALAR
            m.plugin_data.plugin_name = scalars_metadata.PLUGIN_NAME
            m.plugin_data.content = content
            result[run][tag] = m
    return result