parameters: (items)
return_statement: return operator.itemgetter(*items)
docstring: Fixes itemgetter inconsistency (useful in some cases) of not returning
      a tuple if len(items) == 1: always returns an n-tuple where n = len(items)
docstring_summary: Fixes itemgetter inconsistency (useful in some cases) of not returning
      a tuple if len(items) == 1: always returns an n-tuple where n = len(items)
docstring_tokens: Fixes itemgetter inconsistency ( useful in some cases ) of not returning a tuple if len ( items ) == 1 : always returns an n - tuple where n = len ( items )
function: def itemgetter_tuple(items):
      """ Fixes itemgetter inconsistency (useful in some cases) of not returning
      a tuple if len(items) == 1: always returns an n-tuple where n = len(items)
      """
      if len(items) == 0:
          return lambda a: ()
      if len(items) == 1:
          return lambda gettable: (gettable[items[0]],)
      return operator.itemgetter(*items)
function_tokens: def itemgetter_tuple ( items ) : if len ( items ) == 0 : return lambda a : ( ) if len ( items ) == 1 : return lambda gettable : ( gettable [ items [ 0 ] ] , ) return operator . itemgetter ( * items )