code: def create_dir(path, create_categories=True, verbose=True):
      """
      Helper function to setup a suitable folder structure for working with
      custom indicators. You only need to call this once whenever you want to
      setup a new custom indicators folder.
  
      Args:
          path (str): Full path to where you want your indicator tree
          create_categories (bool): If True create category sub-folders
          verbose (bool): If True print verbose output of results
      """
  
      # ensure that the passed directory exists / is readable
      if not exists(path):
          os.makedirs(path)
          if verbose:
              print(f"[i] Created main directory '{path}'.")
  
      # list the contents of the directory
      # dirs = glob(abspath(join(path, '*')))
  
      # optionally add any missing category subdirectories
      if create_categories:
          for sd in [*pandas_ta.Category]:
              d = abspath(join(path, sd))
              if not exists(d):
                  os.makedirs(d)
                  if verbose:
                      dirname = basename(d)
                      print(
                          f"[i] Created an empty sub-directory '{dirname}'."
                      )
  
file_path: pandas-ta/pandas_ta/custom.py
imports: import importlib
  import os
  import sys
  import types
  from os.path import abspath, join, exists, basename, splitext
  from glob import glob
  import pandas_ta
  from pandas_ta import AnalysisIndicators
label_desc: Use image node_id 2 for calling a global function with example usage: create_dir(path, create_categories, verbose) without return types