code: def create_folder_if_not_exist(directory):
      """Creates folder if it doesn't exist.
  
      Args:
        directory: Folder path to create.
      """
      # Also creates directories recursively
      pathlib.Path(directory).mkdir(parents=True, exist_ok=True)
  
file_path: qlib/examples/benchmarks/TFT/libs/utils.py
imports: import os
  import pathlib
  import numpy
  import tensorflow
  from tensorflow.python.tools.inspect_checkpoint import print_tensors_in_checkpoint_file
label_desc: Use image node_id 5 for calling a global function with example usage: create_folder_if_not_exist(directory) without return types