code: def setUp(self):
      logging.basicConfig(level=logging.WARNING)
      numpy.random.seed(11)
  
      # Create permutations meta-hash
      self.permutations = HashPermutations("permut")
  
      # Create binary hash as child hash
      rbp = RandomBinaryProjections("rbp1", 4, rand_seed=19)
      rbp_conf = {
          "num_permutation": 50,
          "beam_size": 10,
          "num_neighbour": 100,
      }
  
      # Add rbp as child hash of permutations hash
      self.permutations.add_child_hash(rbp, rbp_conf)
  
      # Create engine with meta hash and cosine distance
      self.engine_perm = Engine(
          200, lshashes=[self.permutations], distance=CosineDistance()
      )
  
      # Create engine without permutation meta-hash
      self.engine = Engine(
          200, lshashes=[rbp], distance=CosineDistance()
      )
  
file_path: NearPy/tests/permutation_tests.py
imports: import numpy
  import unittest
  import logging
  from nearpy import Engine
  from nearpy.distances import CosineDistance
  from nearpy.hashes import HashPermutations
  from nearpy.hashes import RandomBinaryProjections
  from past.builtins import xrange
label_desc: Use image node_id 1 for calling the TestPermutation obj's underlying member method code with example usage: obj.setUp() without return types