code: def test_format_args_string():
      variable_string = _format_args_string(
          ["foo", "bar"], {"foo": ["foo"], "bar": ["bar"]}, 0
      )
  
      assert variable_string == (
          "Additional information used by the model:\nkey: foo\nvalue:\nfoo"
          "\nkey: bar\nvalue:\nbar"
      )
  
      with pytest.raises(
          MlflowException,
          match=re.escape(
              "bar does not exist in the eval function ['foo']."
          ),
      ):
          variable_string = _format_args_string(
              ["foo", "bar"], pd.DataFrame({"foo": ["foo"]}), 0
          )
  
imports: import inspect
  import re
  from unittest import mock
  import numpy
  import pandas
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.metrics.genai import EvaluationExample, model_utils
  from mlflow.metrics.genai.genai_metric import _extract_score_and_justification, _format_args_string, make_genai_metric
  from mlflow.metrics.genai.metric_definitions import answer_correctness, answer_relevance, answer_similarity, faithfulness, relevance
  from mlflow.metrics.genai.prompts.v1 import AnswerCorrectnessMetric, AnswerRelevanceMetric, AnswerSimilarityMetric, FaithfulnessMetric, RelevanceMetric
label_desc: Use image node_id 8 for calling a global function with example usage: test_format_args_string() without return types