code: def flops_str(FLOPs):
      preset = [(1e12, "T"), (1e9, "G"), (1e6, "M"), (1e3, "K")]
  
      for p in preset:
          if FLOPs // p[0] > 0:
              N = FLOPs / p[0]
              ret = "%.1f%s" % (N, p[1])
              return ret
      ret = "%.1f" % (FLOPs)
      return ret
  
file_path: insightface/recognition/arcface_mxnet/common/flops_counter.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import os
  import json
  import argparse
  import numpy
  import mxnet
label_desc: Use image node_id 5 for calling a global function with example usage: flops_str(FLOPs) and returns: ret, ret