<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pattern(name, pattern):
 """Function to put a name on a pyparsing pattern. Just for ease of debugging/tracing parse errors. """

  pattern.setName(name)
  astracing.maybe_trace(pattern)
  return pattern