code: def test_write_object_to_file_ndjson_with_record_time(
      self, mock_data_frame, mock_time
  ):
      mock_data_frame.return_value.to_json = Mock()
      filename = "test"
  
      data_frame = self.salesforce_hook.write_object_to_file(
          query_results=[],
          filename=filename,
          fmt="ndjson",
          record_time_added=True,
      )
  
      mock_data_frame.return_value.to_json.assert_called_once_with(
          filename, "records", lines=True, date_unit="s"
      )
      pd.testing.assert_frame_equal(
          data_frame,
          pd.DataFrame(
              {
                  "test": [1, 2, 3],
                  "time_fetched_from_salesforce": [
                      mock_time.return_value,
                      mock_time.return_value,
                      mock_time.return_value,
                  ],
              }
          ),
      )
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  from unittest.mock import Mock, patch
  import numpy
  import pandas
  import pytest
  from requests import Session
  from simple_salesforce import Salesforce, api
  from airflow.models.connection import Connection
  from airflow.providers.salesforce.hooks.salesforce import SalesforceHook
  from airflow.utils.session import create_session
label_desc: Use image node_id 16 for calling the TestSalesforceHook obj's underlying member method code with example usage: obj.test_write_object_to_file_ndjson_with_record_time(mock_data_frame, mock_time) without return types