code: def _incremental_dirs():
      path = os.path.join(os.path.dirname(__file__), "incremental")
      files = []
      for d in os.listdir(path):
          if os.path.isdir(os.path.join(path, d)):
              files.append(
                  os.path.join(
                      os.path.dirname(__file__), "incremental", d
                  )
              )
  
      for extra_dir in testing.config.options.mypy_extra_test_paths:
          if extra_dir and os.path.isdir(extra_dir):
              for d in os.listdir(
                  os.path.join(extra_dir, "incremental")
              ):
                  if os.path.isdir(os.path.join(path, d)):
                      files.append(
                          os.path.join(extra_dir, "incremental", d)
                      )
      return files
  
file_path: sqlalchemy/test/ext/mypy/test_mypy_plugin_py3k.py
imports: import os
  import shutil
  from sqlalchemy import testing
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
label_desc: Use image node_id 1 for calling a global function with example usage: _incremental_dirs() and returns: files