code: def test_write_data_to_channel_writer(self):
      # given
      experiment = mock.MagicMock()
      experiment.get_system_properties.return_value = {
          "created": datetime.now()
      }
      channel_name = "a channel name"
      writer = ChannelWriter(experiment, channel_name)
  
      # when
      writer.write("some\ndata")
  
      # then
      experiment._channels_values_sender.send.assert_called_once()
  
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 1 for calling the TestChannelWriter obj's underlying member method code with example usage: obj.test_write_data_to_channel_writer() without return types