def shapeup(self, ob):
        if isinstance(ob, BaseGeometry):
            return ob
        else:
            try:
                return asShape(ob)
            except __HOLE__:
                return asLineString(ob)
dataset/ETHPy150Open Toblerity/Shapely/shapely/ops.py/CollectionOperator.shapeup