def METHOD_NAME(
    self, compilable: Union[Callable[..., Any],
                            python_component.PythonComponent]):
    with tempfile.TemporaryDirectory() as tmp_dir:
        tmp_file = os.path.join(tmp_dir, 're_compiled_output.yaml')
        compiler.Compiler().compile(compilable, tmp_file)
        return components.load_component_from_file(tmp_file)