docs: def create_dir(directory):
      """Create given directory, if doesn't exist.
  
      Parameters
      ----------
      directory : string
          Directory path (can be relative or absolute)
  
      Returns
      -------
      string
          Absolute directory path
      """
      if not os.access(directory, os.F_OK):
          os.makedirs(directory)
      return os.path.abspath(directory)