def set_ids(self, dxid, project=None):
        if self._dxid is not None:
            self.flush()

        DXDataObject.set_ids(self, dxid, project)

        # Reset state
        self._pos = 0
        self._file_length = None
        self._cur_part = 1
        self._num_uploaded_parts = 0
Create, check and delete a stack.
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/bindings/dxfile.py/DXFile.set_ids--crossover with--dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/heat/stacks.py/HeatStacks.create_check_delete_stack