code: def binary_to_float(x):
      n, d = x.shape
      x8 = x.reshape(n * d, -1)
      c8 = 2 * ((x8 >> np.arange(8)) & 1).astype("int8") - 1
      return c8.astype("float32").reshape(n, d * 8)
  
imports: import os
  import numpy
  import unittest
  import faiss
  from common_faiss_tests import compare_binary_result_lists, make_binary_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: binary_to_float(x) and returns: c8