code: def test_history_save_load_cycle_file_path(
      self, history_cls, history, tmpdir
  ):
      if hasattr(history, "store"):
          # DistributedHistory does not support loading from file
          pytest.skip()
  
      history_f = tmpdir.mkdir("skorch").join("history.json")
  
      history.to_file(str(history_f))
      new_history = history_cls.from_file(str(history_f))
  
      assert history == new_history
  
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 25 for calling the TestHistory obj's underlying member method code with example usage: obj.test_history_save_load_cycle_file_path(history_cls, history, tmpdir) without return types