docstr: Test if we prohibit logging images greater than mocked 1KB limit size
docstr_tok: ["Test","if","we","prohibit","logging","images","greater","than","mocked","1KB","limit","size"]
code: def test_image_limit(self):
      """Test if we prohibit logging images greater than mocked 1KB limit size"""
      # given
      path = self._random_path()
  
      with self._exp() as exp:
          attr = FileSeries(exp, path)
  
          file = File.as_image(numpy.random.rand(100, 100) * 255)
          with create_file(
              file.content, binary_mode=True
          ) as tmp_filename:
              saved_file = File(tmp_filename)
  
              # when
              with pytest.warns(
                  expected_warning=UserWarning,
                  match=".* Neptune supports logging images smaller than .*",
              ):
                  attr.assign([file])
              with pytest.warns(
                  expected_warning=UserWarning,
                  match=".* Neptune supports logging images smaller than .*",
              ):
                  attr.assign([saved_file])
  
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 8 for calling the TestFileSeries obj's underlying member method code with example usage: obj.test_image_limit() without return types