def _to_list(self, bounds):
    if isinstance(bounds, Expr):
      if isinstance(bounds.type, ScalarT):
        return [bounds]
      else:
        assert isinstance(bounds.type, TupleT), \
          "Expected tuple but got %s : %s" % (bounds, bounds.type) 
        return self.tuple_elts(bounds)
    elif isinstance(bounds, (int,long)):
      return [bounds]
    else:
      assert isinstance(bounds, (tuple,list))
      return bounds
dataset/ETHPy150Open iskandr/parakeet/parakeet/builder/loop_builder.py/LoopBuilder._to_list/original