code: def _get_filter_directories(args):
      """
      Returns directories to filter, if Filter type is EXCLUDE the directories will be excluded
      from the knowledge source, if Filter type is INCLUDE the directories will be included in the
      knowledge source.
      """
      # filter_directories is not provided
      if "filter_directories" not in args:
          return None
  
      # if filter_type is provided with EXCLUDE or INCLUDE
      if (
          args["filter_directories"]
          and args["filter_type"].upper() == "INCLUDE"
      ):
          filter_directories = args["filter_directories"]
          return (
              filter_directories,
              GithubRepositoryReader.FilterType.INCLUDE,
          )
      else:
          filter_directories = args["filter_directories"]
          return (
              filter_directories,
              GithubRepositoryReader.FilterType.EXCLUDE,
          )
  
imports: import os
  from llama_hub.github_repo import GithubRepositoryReader
label_desc: Use image node_id 3 for calling a global function with example usage: _get_filter_directories(args) and returns: None, filter_directories,  GithubRepositoryReader, filter_directories,  GithubRepositoryReader