def test_collect_valid_content_to_encode_valid(self):
        """Test to ensure that the method collects valid content to encode."""
        tensor_mock = Mock(spec=Tensor)
        preprocessed_content = [[("chunk", tensor_mock)]]

        result = self.pipeline._collect_valid_content_to_encode(preprocessed_content)
        self.assertEqual(result, [tensor_mock])
Test to ensure that the method collects valid content to encode.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_inference_pipeline.py