code: def test_run_with_documents_with_reference_pattern_and_no_match(
      self, caplog
  ):
      component = AnswerBuilder(reference_pattern="\\[(\\d+)\\]")
      with caplog.at_level(logging.WARNING):
          output = component.run(
              query="test query",
              replies=["Answer: AnswerString[3]"],
              meta=[{}],
              documents=[
                  Document(content="test doc 1"),
                  Document(content="test doc 2"),
              ],
          )
      answers = output["answers"]
      assert len(answers) == 1
      assert answers[0].data == "Answer: AnswerString[3]"
      assert answers[0].meta == {}
      assert answers[0].query == "test query"
      assert len(answers[0].documents) == 0
      assert (
          "Document index '3' referenced in Generator output is out of range."
          in caplog.text
      )
  
file_path: haystack/test/components/builders/test_answer_builder.py
imports: import logging
  import pytest
  from haystack import GeneratedAnswer, Document
  from haystack.components.builders.answer_builder import AnswerBuilder
label_desc: Use image node_id 11 for calling the TestAnswerBuilder obj's underlying member method code with example usage: obj.test_run_with_documents_with_reference_pattern_and_no_match(caplog) without return types