<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compile_file_into_spirv(filepath, stage, optimization='size', warnings_as_errors=False):
 """Compile shader file into Spir-V binary. This function uses shaderc to compile your glsl file code into Spir-V code. Args: filepath (strs):
 Absolute path to your shader file stage (str):
 Pipeline stage in ['vert', 'tesc', 'tese', 'geom', 'frag', 'comp'] optimization (str):
 'zero' (no optimization) or 'size' (reduce size) warnings_as_errors (bool):
 Turn warnings into errors Returns: bytes: Compiled Spir-V binary. Raises: CompilationError: If compilation fails. """

    with open(filepath, 'rb') as f:
        content = f.read()

    return compile_into_spirv(content, stage, filepath,
                              optimization=optimization,
                              warnings_as_errors=warnings_as_errors)