code: def bq_query_result_mock_fail():
      with mock.patch.object(
          bigquery.job.QueryJob, "result"
      ) as query_result_mock_fail:
          query_result_mock_fail.side_effect = exceptions.BadRequest(
              "400 Syntax error"
          )
          yield query_result_mock_fail
  
imports: from unittest import mock
  import pyarrow
  import pytest
  from google.api_core import exceptions, operation
  from google.cloud import bigquery, bigquery_storage
  from google.cloud.bigquery import job
  from google.cloud.bigquery_storage_v1.types import stream
  import ray
  from ray.data.datasource import BigQueryDatasource, _BigQueryDatasink
  from ray.data.tests.conftest import *
  from ray.data.tests.mock_http_server import *
  from ray.tests.conftest import *
label_desc: Use image node_id 4 for calling a global function with example usage: bq_query_result_mock_fail() without return types