how to pass list tuple set dictionary to function