code: def ray_remote_function_mock():
      with mock.patch.object(
          ray.remote_function.RemoteFunction, "_remote"
      ) as remote_fn:
          remote_fn.return_value = 1
          yield remote_fn
  
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 5 for calling a global function with example usage: ray_remote_function_mock() without return types