code: def make_dir(path):
      """Create directory if path is not existed.
  
      Args:
          path: The directory that wants to create.
      """
      try:
          os.makedirs(path)
      except:
          if not os.path.isdir(path):
              raise
  
file_path: PGL/legacy/examples/line/line.py
imports: import time
  import argparse
  import random
  import os
  import numpy
  import pgl
  import paddle.fluid
  import paddle.fluid.layers
  from pgl.utils.logger import log
  from data_loader import FlickrDataset
label_desc: Use image node_id 1 for calling a global function with example usage: make_dir(path) without return types