code: def print_file_size_in_dir(path="."):
      import os
  
      with os.scandir(path) as it:
          for entry in it:
              if entry.is_file():
                  print(entry, entry.stat().st_size)
              elif entry.is_dir():
                  print_file_size_in_dir(entry.path)
  
file_path: BigDL/python/ppml/src/bigdl/ppml/fl/nn/utils.py
imports: import logging
  from bigdl.ppml.utils.safepickle import SafePickle
  import stat
  import numpy
  from bigdl.ppml.fl.nn.generated.nn_service_pb2 import *
  from bigdl.ppml.fl.nn.generated.fl_base_pb2 import FloatTensor, TensorMap
  import numpy
  from bigdl.dllib.utils.log4Error import invalidInputError
  from bigdl.ppml.fl.nn.generated.fl_base_pb2 import FloatTensor, TensorMap
label_desc: Use image node_id 4 for calling a global function with example usage: print_file_size_in_dir(path) without return types