code: def _get_new_block_mem_instance(op_param, mem_map, block_out):
      
      memid, old_mem = op_param
      if old_mem not in mem_map:
          new_mem = old_mem._make_copy(block_out)
          new_mem.id = old_mem.id
          mem_map[old_mem] = new_mem
      return memid, mem_map[old_mem]
docs: gets the instance of the memory in the new block that is
      associated with a memory in a old block