def _parse_api_options(self, options, query_string=False):
        api_options = self._select_options(options, self.API_OPTIONS)
        if query_string:
            # Prefix all options with "opt_"
            query_api_options = {}
            for key in api_options:
                # Transform list/tuples into comma separated list
                if isinstance(api_options[key], (list, tuple)):
                    query_api_options['opt_' + key] = ','.join(api_options[key])
                else:
                    query_api_options['opt_' + key] = api_options[key]
            return query_api_options
        else:
            return api_options
Selects API string options out of the provided options object and formats for either request body (default) or query string.
dataset/ETHPy150Open Asana/python-asana/asana/client.py/Client._parse_api_options