docstr: Test that ndjson is split by approx_max_file_size_bytes param.
docstr_tok: ["Test","that","ndjson","is","split","by","approx_max_file_size_bytes","param","."]
code: def test_save_as_json_with_file_splitting(
      self, mock_gcs_hook, mock_trino_hook
  ):
      """Test that ndjson is split by approx_max_file_size_bytes param."""
  
      expected_upload = {
          FILENAME.format(0): b"".join(NDJSON_LINES[:2]),
          FILENAME.format(1): NDJSON_LINES[2],
      }
  
      def _assert_upload(
          bucket, obj, tmp_filename, mime_type, gzip, metadata=None
      ):
          assert BUCKET == bucket
          assert "application/json" == mime_type
          assert not gzip
          with open(tmp_filename, "rb") as file:
              assert expected_upload[obj] == file.read()
  
      mock_gcs_hook.return_value.upload.side_effect = _assert_upload
  
      mock_cursor = (
          mock_trino_hook.return_value.get_conn.return_value.cursor
      )
  
      mock_cursor.return_value.description = [
          ("some_num", "INTEGER", None, None, None, None, None),
          ("some_str", "VARCHAR(20)", None, None, None, None, None),
      ]
  
      mock_cursor.return_value.fetchone.side_effect = [
          [42, "mock_row_content_1"],
          [43, "mock_row_content_2"],
          [44, "mock_row_content_3"],
          None,
      ]
  
      op = TrinoToGCSOperator(
          task_id=TASK_ID,
          sql=SQL,
          bucket=BUCKET,
          filename=FILENAME,
          approx_max_file_size_bytes=len(
              expected_upload[FILENAME.format(0)]
          ),
      )
  
      op.execute(None)
  
      mock_gcs_hook.return_value.upload.assert_called()
  
file_path: airflow/tests/integration/providers/google/cloud/transfers/test_trino_to_gcs.py
imports: from __future__ import annotations
  from unittest.mock import patch
  import pytest
  from airflow.providers.google.cloud.transfers.trino_to_gcs import TrinoToGCSOperator
label_desc: Use image node_id 3 for calling the TestTrinoToGCSOperator obj's underlying member method code with example usage: obj.test_save_as_json_with_file_splitting(mock_gcs_hook, mock_trino_hook) without return types