def _to_args(x):
 if (not isinstance(x, (list, tuple, np.ndarray))):
  x = [x]
 return x

def _to_args ( x ) : if ( not isinstance ( x , ( list , tuple , np . ndarray ) ) ) : x = [ x ] return x
convert to args representation .