code: def write_bin(path, feature):
      feature = list(feature)
      with open(path, "wb") as f:
          f.write(struct.pack("4i", len(feature), 1, 4, 5))
          f.write(struct.pack("%df" % len(feature), *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 2 for calling a global function with example usage: write_bin(path, feature) without return types