def getMayaAppDir(versioned=False):
    appDir = os.environ.get('MAYA_APP_DIR',None)
    if appDir is None :
        if os.name == 'nt':
            appDir = os.environ.get('USERPROFILE',os.environ.get('HOME',None))
            if appDir is None:
                return

            # Vista or newer... version() returns "6.x.x"
            if int(platform.version().split('.')[0]) > 5:
                appDir = os.path.join( appDir, 'Documents')
            else:
                appDir = os.path.join( appDir, 'My Documents')
        else:
            appDir = os.environ.get('HOME',None)
            if appDir is None:
                return

        if platform.system() == 'Darwin':
            appDir = os.path.join( appDir, 'Library/Preferences/Autodesk/maya' )
        else:
            appDir = os.path.join( appDir, 'maya' )

    if versioned and appDir:
        appDir = os.path.join(appDir, versions.installName())

    return appDir
Make sure we got 4 objects from the JSON file
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/pymel/mayautils.py/getMayaAppDir--crossover with--dataset/ETHPy150Open rbanffy/testable_appengine/tests/sanity_test.py/ProcessedLoaderTest.test_loaded_count