def METHOD_NAME(
    client_python_version: str,
    conda_env: str = None,
):
    """Bootstrap runtime environment for remote function invocation
    Args:
        conda_env (str): conda environment to be activated. Default is None.
    """
    workspace_archive_dir_path = os.path.join(BASE_CHANNEL_PATH, REMOTE_FUNCTION_WORKSPACE)
    if not os.path.exists(workspace_archive_dir_path):
        logger.info(
            "Directory '%s' does not exist. Assuming no dependencies to bootstrap.",
            workspace_archive_dir_path,
        )
        return
    # Unpack user workspace archive first.
    workspace_archive_path = os.path.join(workspace_archive_dir_path, "workspace.zip")
    if not os.path.isfile(workspace_archive_path):
        logger.info(
            "Workspace archive '%s' does not exist. Assuming no dependencies to bootstrap.",
            workspace_archive_dir_path,
        )
        return
    workspace_unpack_dir = pathlib.Path(os.getcwd()).absolute()
    shutil.unpack_archive(filename=workspace_archive_path, extract_dir=workspace_unpack_dir)
    logger.info("Successfully unpacked workspace archive at '%s'.", workspace_unpack_dir)
    workspace_unpack_dir = pathlib.Path(workspace_unpack_dir, JOB_REMOTE_FUNCTION_WORKSPACE)
    # Handle pre-execution commands
    path_to_pre_exec_script = os.path.join(workspace_unpack_dir, PRE_EXECUTION_SCRIPT_NAME)
    RuntimeEnvironmentManager().run_pre_exec_script(pre_exec_script_path=path_to_pre_exec_script)
    # Handle dependencies file.
    dependencies_file = None
    for file in os.listdir(workspace_unpack_dir):
        if file.endswith(".txt") or file.endswith(".yml") or file.endswith(".yaml"):
            dependencies_file = os.path.join(workspace_unpack_dir, file)
            break
    if dependencies_file:
        RuntimeEnvironmentManager().bootstrap(
            local_dependencies_file=dependencies_file,
            conda_env=conda_env,
            client_python_version=client_python_version,
        )
    else:
        logger.info(
            "Did not find any dependency file in workspace directory at '%s'."
            " Assuming no additional dependencies to install.",
            workspace_archive_dir_path,
        )