def _determine_location_for(self, path):
        parts = path.split(os.path.sep)
        # Heuristic classifier
        if 'site-packages' in parts:
            return '3'
        elif parts in _PYTHON_VERSION:
            return 'S'
        # Use table from sysconfig.get_python_lib()
        for dir, location in self.lib_locations:
            if path.startswith(dir):
                return location
        return 'L'
dataset/ETHPy150Open alecthomas/importmagic/importmagic/index.py/SymbolIndex._determine_location_for/swapped operands of `in`