def METHOD_NAME(connection: SapHanaConnection) -> Engine:
    """
    Create connection
    """
    if isinstance(connection.connection, SqlConnection):
        return create_generic_db_connection(
            connection=connection,
            get_connection_url_fn=get_database_connection_url,
            get_connection_args_fn=get_connection_args_common,
        )
    if isinstance(connection.connection, HdbUserStoreConnection):
        return create_generic_db_connection(
            connection=connection,
            get_connection_url_fn=get_hdb_connection_url,
            get_connection_args_fn=get_connection_args_common,
        )
    raise ValueError("Unrecognized SAP Hana connection type!")