How and where is the $variables variable used in templates etc. generated in Drupal?
The $variables associated array that are passed into functions such as MYTHEME_item_list($variables) are initialized by the caller of that function.