code: def format_file_size(input_size):
      file_size = abs(input_size)
      file_size_str = ""
      if file_size > 1000000:
          file_size_str = "{:.3f} MB".format(file_size / 1000000)
      elif file_size > 1000:
          file_size_str = "{:.3f} KB".format(file_size / 1000)
      elif file_size > 0:
          file_size_str = str(file_size) + " bytes"
      if input_size < 0:
          file_size_str = "-" + file_size_str
      return file_size_str
  
file_path: cudf/cpp/scripts/sort_ninja_log.py
imports: import argparse
  import os
  import sys
  import xml.etree.ElementTree
  from pathlib import Path
  from xml.dom import minidom
label_desc: Use image node_id 6 for calling a global function with example usage: format_file_size(input_size) and returns: file_size_str