code: def _get_import_dir():
      import_dir = op.abspath(op.join(op.dirname(__file__), ".."))
      up_dir = op.join(import_dir, "..")
      if (
          op.isfile(op.join(up_dir, "setup.py"))
          and op.isdir(op.join(up_dir, "vispy"))
          and op.isdir(op.join(up_dir, "examples"))
      ):
          dev = True
      else:
          dev = False
      return import_dir, dev
  
imports: from __future__ import print_function
  import sys
  import os
  import warnings
  from os import path
  from copy import deepcopy
  from functools import partial
  from ..util import use_log_level, run_subprocess
  from ..util.ptime import time
  from ._testing import has_application, nottest, IS_CI, IS_TRAVIS_CI
label_desc: Use image node_id 1 for calling a global function with example usage: _get_import_dir() and returns: import_dir,  dev