@classmethod
    def validate_dependency_registration(cls, params, name):
        mandatory = ['Dependency-Version']
        StorletGatewayDocker._check_mandatory_params(params, mandatory)

        perm = params.get('Dependency-Permissions')
        if perm is not None:
            try:
                perm_int = int(perm, 8)
            except __HOLE__:
                raise ValueError('Dependency permission is incorrect')
            if (perm_int & int('600', 8)) != int('600', 8):
                raise ValueError('The owner hould have rw permission')
dataset/ETHPy150Open openstack/storlets/Engine/swift/storlet_gateway/storlet_docker_gateway.py/StorletGatewayDocker.validate_dependency_registration