code: def test_log_path(self, get_operation_processor):
      # given
      wait = self._random_wait()
      path = self._random_path()
      processor = MagicMock()
      get_operation_processor.return_value = processor
  
      with self._exp() as exp:
          attr = FileSeries(exp, path)
  
          file = File.as_image(numpy.random.rand(10, 10) * 255)
          stream = File.from_stream(io.BytesIO(file.content))
          with create_file(
              file.content, binary_mode=True
          ) as tmp_filename:
              saved_file = File(tmp_filename)
  
              # when
              attr.log(
                  file,
                  step=3,
                  timestamp=self._now(),
                  wait=wait,
                  description="something",
              )
              attr.log(
                  [stream, saved_file],
                  timestamp=self._now(),
                  wait=wait,
                  description="something",
              )
  
              # then
              def generate_expected_call(wait, step):
                  log_operation = LogImages(
                      path=path,
                      values=[
                          LogImages.ValueType(
                              value=ImageValue(
                                  base64_encode(file.content),
                                  None,
                                  "something",
                              ),
                              step=step,
                              ts=self._now(),
                          )
                      ],
                  )
                  return call(
                      log_operation,
                      wait=wait,
                  )
  
              processor.enqueue_operation.assert_has_calls(
                  [
                      generate_expected_call(wait, step=3),
                      generate_expected_call(wait, step=None),
                      generate_expected_call(wait, step=None),
                  ]
              )
  
imports: import io
  from unittest import mock
  import numpy
  import pytest
  from mock import MagicMock, call, patch
  from neptune.attributes.series.file_series import FileSeries
  from neptune.exceptions import OperationNotSupported
  from neptune.internal.operation import ClearImageLog, ImageValue, LogImages
  from neptune.internal.utils import base64_encode
  from neptune.types import File
  from tests.unit.neptune.new.attributes.test_attribute_base import TestAttributeBase
  from tests.unit.neptune.new.utils.file_helpers import create_file
label_desc: Use image node_id 5 for calling the TestFileSeries obj's underlying member method code with example usage: obj.test_log_path(get_operation_processor) and returns: call