def get_template(self, filename):
        if filename in self.template_cache:
            return self.template_cache[filename]
        
        template = self.env.get_template(filename)
        self.template_cache[filename] = template
        return template
dataset/ETHPy150Open PyHDI/Pyverilog/pyverilog/ast_code_generator/codegen.py/ASTCodeGenerator.get_template/original