code: def test_write_data_with_high_resolution_datetime_now(self, dt):
      # given
      experiment = mock.MagicMock()
      experiment.get_system_properties.return_value = {
          "created": datetime(2022, 2, 2, 2, 2, 2, 2)
      }
      channel_name = "a channel name"
      writer = ChannelWriter(experiment, channel_name)
  
      # when
      dt.now.return_value = datetime(2022, 2, 2, 2, 2, 2, 4)
      writer.write("text1\n")
      dt.now.return_value = datetime(2022, 2, 2, 2, 2, 2, 5)
      writer.write("text2\n")
  
      # then
      x_to_text = self._extract_x_to_text_from_calls(
          experiment._channels_values_sender.send.call_args_list
      )
      self.assertEqual(x_to_text, {0.002: "text1", 0.003: "text2"})
  
file_path: neptune-client/tests/unit/neptune/legacy/test_channel_writer.py
imports: import unittest
  from datetime import datetime
  import mock
  from neptune.legacy.internal.streams.channel_writer import ChannelWriter
label_desc: Use image node_id 3 for calling the TestChannelWriter obj's underlying member method code with example usage: obj.test_write_data_with_high_resolution_datetime_now(dt) without return types