original_docstring: 
      Extracts user tags into a structured dict
  
      :param user_tags: A string containing user tags (tags separated by comma, key and value separated by colon).
      :return: A dict containing user tags. If no user tags are given, an empty dict is returned.
      
docstring: Extracts user tags into a structured dict
docstring_tokens: Extracts user tags into a structured dict
code: def extract_user_tags_from_string(user_tags):
      """
      Extracts user tags into a structured dict
  
      :param user_tags: A string containing user tags (tags separated by comma, key and value separated by colon).
      :return: A dict containing user tags. If no user tags are given, an empty dict is returned.
      """
      user_tags_dict = {}
      if user_tags and user_tags.strip() != "":
          try:
              for user_tag in user_tags.split(","):
                  user_tag_key, user_tag_value = user_tag.split(":")
                  user_tags_dict[user_tag_key] = user_tag_value
          except ValueError:
              msg = "User tag keys and values have to separated by a ':'. Invalid value [%s]" % user_tags
              logging.getLogger(__name__).exception(msg)
              raise exceptions.SystemSetupError(msg)
      return user_tags_dict
code_tokens: def extract_user_tags_from_string ( user_tags ) : user_tags_dict = { } if user_tags and user_tags . strip ( ) != "" : try : for user_tag in user_tags . split ( "," ) : user_tag_key , user_tag_value = user_tag . split ( ":" ) user_tags_dict [ user_tag_key ] = user_tag_value except ValueError : msg = "User tag keys and values have to separated by a ':'. Invalid value [%s]" % user_tags logging . getLogger ( __name__ ) . exception ( msg ) raise exceptions . SystemSetupError ( msg ) return user_tags_dict
short_docstring: Extracts user tags into a structured dict
short_docstring_tokens: Extracts user tags into a structured dict
comment: """
      Extracts user tags into a structured dict
  
      :param user_tags: A string containing user tags (tags separated by comma, key and value separated by colon).
      :return: A dict containing user tags. If no user tags are given, an empty dict is returned.
      """