Adding Taxonomy terms programmatically with specific tid?
tid will be assigned to the terms automatically by drupal. My suggestion is first create the terms then you can use taxonomy_get_term_by_name function to find the term and then map it to the respective node while importing.