Defining the create_dictionary() function