def find_java_home(cratedb_version: tuple) -> str:
if MIN_VERSION_FOR_JVM11 <= cratedb_version < (<NUM_LIT:4>, <NUM_LIT:0>):<EOL><INDENT>return os.environ.get('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>if cratedb_version < MIN_VERSION_FOR_JVM11:<EOL><INDENT>return _find_matching_java_home(lambda ver: ver[<NUM_LIT:0>] == <NUM_LIT:8>)<EOL><DEDENT>else:<EOL><INDENT>return _find_matching_java_home(lambda ver: ver[<NUM_LIT:0>] >= <NUM_LIT:11>)<EOL><DEDENT>
Return a path to a JAVA_HOME suites for the given CrateDB version