code: def guitar_skip_if_matches(pattern, name, reason):
      """Skips tests in the Guitar build if `name` matches `pattern`.
  
      This is an alternative to `guitar_skip` for parameterized tests, when the
      goal is to disable only some tests in a parameterized group.
  
      Args:
        pattern: Regex to apply to `name` to detect whether to skip.
        name: Python string giving a "name" for this test, e.g., the Bijector or
          Distribution being tested.  The test will be skipped if this matches the
          `pattern`.
        reason: Python string.  The reason to skip, or a reference to the relevant
          bug.
  
      Returns nothing.
  
      Raises:
        SkipTest: If the test should be skipped.
      """
      if running_under_guitar():
          if re.search(pattern, name):
              raise unittest.case.SkipTest(reason)
  
imports: import contextlib
  import os
  import re
  import traceback
  import unittest
  import hypothesis
  from hypothesis.extra import numpy
  import hypothesis.strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.util.deferred_tensor import DeferredTensor
label_desc: Use image node_id 8 for calling a global function with example usage: guitar_skip_if_matches(pattern, name, reason) without return types