code: def test_hash_memory_storage_rdp(self):
      hash1 = RandomDiscretizedProjections("testRDPHash", 10, 0.1)
      hash1.reset(100)
  
      self.memory.store_hash_configuration(hash1)
  
      hash2 = RandomDiscretizedProjections(None, None, None)
      hash2.apply_config(
          self.memory.load_hash_configuration("testRDPHash")
      )
  
      self.assertEqual(hash1.dim, hash2.dim)
      self.assertEqual(hash1.hash_name, hash2.hash_name)
      self.assertEqual(hash1.bin_width, hash2.bin_width)
      self.assertEqual(hash1.projection_count, hash2.projection_count)
  
      for i in range(hash1.normals.shape[0]):
          for j in range(hash1.normals.shape[1]):
              self.assertEqual(hash1.normals[i, j], hash2.normals[i, j])
  
file_path: NearPy/tests/hash_storage_tests.py
imports: import numpy
  import unittest
  from mockredis import MockRedis
  from nearpy.storage import MemoryStorage, RedisStorage
  from nearpy.hashes import RandomBinaryProjections, RandomDiscretizedProjections, PCABinaryProjections, PCADiscretizedProjections
label_desc: Use image node_id 4 for calling the TestHashStorage obj's underlying member method code with example usage: obj.test_hash_memory_storage_rdp() without return types