code: def assert_state_equal(actual, target):
      for key in actual:
          if isinstance(actual[key], dict):
              assert_state_equal(actual[key], target[key])
          elif isinstance(actual[key], np.ndarray):
              assert_array_equal(actual[key], target[key])
          else:
              assert actual[key] == target[key]
  
imports: import os
  from os.path import join
  import sys
  import numpy
  from numpy.testing import assert_equal, assert_allclose, assert_array_equal, assert_raises
  import pytest
  from numpy.random import Generator, MT19937, PCG64, PCG64DXSM, Philox, RandomState, SeedSequence, SFC64, default_rng
  from numpy.random._common import interface
  import yatest.common
label_desc: Use image node_id 1 for calling a global function with example usage: assert_state_equal(actual, target) without return types