def METHOD_NAME(self) -> str:
    """Generate an unique file path"""
    with self.lock:
        self.counter += 1
        return str(
            pathlib.Path(self.tmpdir.name) / pathlib.Path("%04d" % self.counter)
        )