code: def test_resolve_str():
      template = "My name is ${last}, ${first} ${last}"
      expected = "My name is Bond, James Bond"
      context = Context({"first": "James", "last": "Bond"})
      assert context.resolve(template) == expected
  
file_path: dvc/tests/unit/test_interpolate.py
imports: from math import inf, pi
  import pytest
  from dvc.parsing.context import Context, recurse_not_a_node
label_desc: Use image node_id 3 for calling a global function with example usage: test_resolve_str() without return types