def ensure_has_elts(x, lineno=None, col_offset=None):
 if (not has_elts(x)):
  if (not isinstance(x, Iterable)):
   x = [x]
  lineno = (x[0].lineno if (lineno is None) else lineno)
  col_offset = (x[0].col_offset if (col_offset is None) else col_offset)
  x = ast.Tuple(elts=x, ctx=ast.Load(), lineno=lineno, col_offset=col_offset)
 return x

def ensure_has_elts ( x , lineno = None , col_offset = None ) : if ( not has_elts ( x ) ) : if ( not isinstance ( x , Iterable ) ) : x = [ x ] lineno = ( x [ 0 ] . lineno if ( lineno is None ) else lineno ) col_offset = ( x [ 0 ] . col_offset if ( col_offset is None ) else col_offset ) x = ast . Tuple ( elts = x , ctx = ast . Load ( ) , lineno = lineno , col_offset = col_offset ) return x
ensures that x is an ast node with elements .