def load_getstash(self):
        """
        Load and compile getstash.py
        :return: the compiled code
        :rtype: Code
        """
        p = self.get_getstash_path()
        with open(p, "r") as fin:
            content = fin.read()
            code = compile(content, p, "exec", dont_inherit=True)
        return code

        Load and compile getstash.py
        :return: the compiled code
        :rtype: Code
        
tests/install/test_getstash.py