parameters: (p)
docstring: testlist_multi : testlist_multi COMMA test
                        | test
docstring_summary: testlist_multi : testlist_multi COMMA test
                        | test
docstring_tokens: testlist_multi : testlist_multi COMMA test | test
function: def p_testlist_multi(p):
      """testlist_multi : testlist_multi COMMA test
                        | test"""
      if len(p) == 2:
          # singleton
          p[0] = p[1]
      else:
          if isinstance(p[1], list):
              p[0] = p[1] + [p[3]]
          else:
              # singleton -> tuple
              p[0] = [p[1], p[3]]
function_tokens: def p_testlist_multi ( p ) : if len ( p ) == 2 : # singleton p [ 0 ] = p [ 1 ] else : if isinstance ( p [ 1 ] , list ) : p [ 0 ] = p [ 1 ] + [ p [ 3 ] ] else : # singleton -> tuple p [ 0 ] = [ p [ 1 ] , p [ 3 ] ]