code: def test_idpattern_override_inside_outside(self):
      # bpo-1198569: Allow the regexp inside and outside braces to be
      # different when deriving from Template.
      class MyPattern(Template):
          idpattern = r"[a-z]+"
          braceidpattern = r"[A-Z]+"
          flags = 0
  
      m = dict(foo="foo", BAR="BAR")
      s = MyPattern("$foo ${BAR}")
      self.assertEqual(s.substitute(m), "foo BAR")
  
imports: import unittest
  import string
  from string import Template
label_desc: Use image node_id 13 for calling the TestTemplate obj's underlying member method code with example usage: obj.test_idpattern_override_inside_outside() without return types