def create_dictionary(self, *key_value_pairs):
        if len(key_value_pairs) % 2 != 0:
            raise ValueError("Creating a dictionary failed. There should be "
                             "an even number of key-value-pairs.")
        return self.set_to_dictionary({}, *key_value_pairs)
Creates and returns a dictionary from the given `key_value_pairs`.
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/Collections.py/_Dictionary.create_dictionary