code: def load_bin(path, fill=0.0):
      with open(path, "rb") as f:
          bb = f.read(4 * 4)
          # print(len(bb))
          v = struct.unpack("4i", bb)
          # print(v[0])
          bb = f.read(v[0] * 4)
          v = struct.unpack("%df" % (v[0]), bb)
          feature = np.full(
              (feature_dim + feature_ext,), fill, dtype=np.float32
          )
          feature[0:feature_dim] = v
          # feature = np.array( v, dtype=np.float32)
      # print(feature.shape)
      # print(np.linalg.norm(feature))
      return feature
  
file_path: insightface/recognition/_evaluation_/megaface/remove_noises.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import datetime
  import time
  import shutil
  import sys
  import numpy
  import argparse
  import struct
  import cv2
  import mxnet
  from mxnet import ndarray
label_desc: Use image node_id 1 for calling a global function with example usage: load_bin(path, fill) and returns: feature