code: def test_string_interpolation_with_digit_placeholder_and_string_variable(
      self,
  ):
      @torch.jit.script
      def fn(arg1: str) -> str:
          return "%d in template" % arg1
  
      with self.assertRaisesRegexWithHighlight(
          RuntimeError,
          "%d requires a number for formatting, but got String",
          '"%d in template" % arg1',
      ):
          fn("1")
  
imports: import os
  import sys
  import torch
  from typing import List
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 9 for calling the TestStringFormatting obj's underlying member method code with example usage: obj.test_string_interpolation_with_digit_placeholder_and_string_variable() and returns: unknown