code: def create_path(path, is_dir=False):
      
      path = norm_path(path)
      path_check = path
      if not is_dir:
          path_check = os.path.dirname(path)
  
      does_path_exists = os.path.exists(path_check)
  
      if does_path_exists:
          return path
  
      try:
          os.makedirs(path_check)
      except OSError:
          pass
  
      return path
docs: Check if path exists, if not create it
      :param path: path or file to create directory for
      :param is_dir: pass True if we are passing in a directory, default = False
      :return: os safe path from `path`