def run_cloud_function(self, function, kw_function_args=None, **kwargs):
        args = []
        # Args converted in the form of key1='value1' ... keyN='valueN'
        if kw_function_args:
            args = [
                "{0}='{1}'".format(key, value)
                for key, value in kw_function_args.iteritems()
                ]

        output = self.run_cloud("-f {0} {1} {2}".format(function, CONFIG_NAME, " ".join(args)), **kwargs)
        return output.get(CONFIG_NAME, {}).get(PROVIDER_NAME, {})
A helper to call `salt-cloud -f function provider`
dataset/ETHPy150Open saltstack/salt/tests/integration/cloud/helpers/virtualbox.py/VirtualboxCloudTestCase.run_cloud_function