def _get_volume_region(volume):
    return (
        # Rackspace
        getattr(volume.driver, "region", None) or
        # AWS
        getattr(volume.driver, "region_name", None)
    )
Create batch file to run a Python script
dataset/ETHPy150Open ClusterHQ/flocker/admin/cleanup.py/_get_volume_region--crossover with--dataset/ETHPy150Open winpython/winpython/make.py/WinPythonDistribution.create_python_batch