code: def test_history_partial_singular_values(self, history):
      values = history[-1, ("duration", "total_loss")]
      expected = (history[-1]["duration"], history[-1]["total_loss"])
  
      # pylint: disable=unidiomatic-typecheck
      assert type(values) == tuple
      assert values == expected
  
imports: import pickle
  import time
  import multiprocessing
  from functools import partial
  import numpy
  import pytest
  import torch
  from torch.distributed import TCPStore
  from sklearn.datasets import make_classification
label_desc: Use image node_id 20 for calling the TestHistory obj's underlying member method code with example usage: obj.test_history_partial_singular_values(history) without return types