def get_options(self, specs):
        options = {}
        for spec in specs:
            convert_f = None
            use_default = False
            if type(spec) == tuple:
                key = spec[0]
                if len(spec) > 1:
                    convert_f = spec[1]
                if len(spec) > 2:
                    use_default = spec[2]
            else:
                key = spec

            if self.has_input(key) or use_default:
                val = self.get_input(key)
                if convert_f is not None:
                    val = convert_f(val)
                options[key] = val

        return options
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/gmaps/utils.py/OptionsMixin.get_options/original