code: def test_load_state_dict(self):
      dataset_1 = ActiveLearningDataset(MyDataset(), random_state=50)
      dataset_1.label_randomly(10)
      state_dict1 = dataset_1.state_dict()
  
      dataset_2 = ActiveLearningDataset(MyDataset(), random_state=None)
      assert dataset_2.n_labelled == 0
  
      dataset_2.load_state_dict(state_dict1)
      assert dataset_2.n_labelled == 10
  
      # test if the second lable_randomly call have same behaviour
      dataset_1.label_randomly(5)
      dataset_2.label_randomly(5)
  
      assert np.allclose(dataset_1.labelled, dataset_2.labelled)
  
imports: import pickle
  import unittest
  import unittest.mock
  import warnings
  import datasets
  import numpy
  import pytest
  import torch.utils.data
  from torchvision.transforms import Lambda
  from baal.active import ActiveLearningDataset
label_desc: Use image node_id 7 for calling the ActiveDatasetTest obj's underlying member method code with example usage: obj.test_load_state_dict() without return types