def create_tag(<EOL>self, project_id, name, description=None, type=None, custom_headers=None, raw=False, **operation_config):
<EOL>url = self.create_tag.metadata['<STR_LIT:url>']<EOL>path_format_arguments = {<EOL>'<STR_LIT>': self._serialize.url("<STR_LIT>", self.config.endpoint, '<STR_LIT:str>', skip_quote=True),<EOL>'<STR_LIT>': self._serialize.url("<STR_LIT>", project_id, '<STR_LIT:str>')<EOL>}<EOL>url = self._client.format_url(url, **path_format_arguments)<EOL>query_parameters = {}<EOL>query_parameters['<STR_LIT:name>'] = self._serialize.query("<STR_LIT:name>", name, '<STR_LIT:str>')<EOL>if description is not None:<EOL><INDENT>query_parameters['<STR_LIT:description>'] = self._serialize.query("<STR_LIT:description>", description, '<STR_LIT:str>')<EOL><DEDENT>if type is not None:<EOL><INDENT>query_parameters['<STR_LIT:type>'] = self._serialize.query("<STR_LIT:type>", type, '<STR_LIT:str>')<EOL><DEDENT>header_parameters = {}<EOL>header_parameters['<STR_LIT>'] = '<STR_LIT:application/json>'<EOL>if custom_headers:<EOL><INDENT>header_parameters.update(custom_headers)<EOL><DEDENT>header_parameters['<STR_LIT>'] = self._serialize.header("<STR_LIT>", self.config.api_key, '<STR_LIT:str>')<EOL>request = self._client.post(url, query_parameters, header_parameters)<EOL>response = self._client.send(request, stream=False, **operation_config)<EOL>if response.status_code not in [<NUM_LIT:200>]:<EOL><INDENT>raise models.CustomVisionErrorException(self._deserialize, response)<EOL><DEDENT>deserialized = None<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>deserialized = self._deserialize('<STR_LIT>', response)<EOL><DEDENT>if raw:<EOL><INDENT>client_raw_response = ClientRawResponse(deserialized, response)<EOL>return client_raw_response<EOL><DEDENT>return deserialized<EOL>
Create a tag for the project.

        :param project_id: The project id.
        :type project_id: str
        :param name: The tag name.
        :type name: str
        :param description: Optional description for the tag.
        :type description: str
        :param type: Optional type for the tag. Possible values include:
         'Regular', 'Negative'
        :type type: str
        :param dict custom_headers: headers that will be added to the request
        :param bool raw: returns the direct response alongside the
         deserialized response
        :param operation_config: :ref:`Operation configuration
         overrides<msrest:optionsforoperations>`.
        :return: Tag or ClientRawResponse if raw=true
        :rtype:
         ~azure.cognitiveservices.vision.customvision.training.models.Tag or
         ~msrest.pipeline.ClientRawResponse
        :raises:
         :class:`CustomVisionErrorException<azure.cognitiveservices.vision.customvision.training.models.CustomVisionErrorException>`