class_docstr: NOTE: This class is auto generated by OpenAPI Generator
  Ref: https://openapi-generator.tech
  
  Do not edit the class manually.
class_docstr_tok: ["NOTE",":","This","class","is","auto","generated","by","OpenAPI","Generator","Ref",":","https",":","\/\/openapi-generator.tech","Do","not","edit","the","class","manually","."]
docstr: update_tag_by_tag_id  # noqa: E501
  
  update information about a specific tag  # noqa: E501
  This method makes a synchronous HTTP request by default. To make an
  asynchronous HTTP request, please pass async_req=True
  
  >>> thread = api.update_tag_by_tag_id(dataset_id, tag_id, tag_update_request, async_req=True)
  >>> result = thread.get()
  
  :param dataset_id: ObjectId of the dataset (required)
  :type dataset_id: str
  :param tag_id: ObjectId of the tag (required)
  :type tag_id: str
  :param tag_update_request: updated data for tag (required)
  :type tag_update_request: TagUpdateRequest
  :param async_req: Whether to execute the request asynchronously.
  :type async_req: bool, optional
  :param _request_timeout: timeout setting for this request. If one
                           number provided, it will be total request
                           timeout. It can also be a pair (tuple) of
                           (connection, read) timeouts.
  :return: Returns the result object.
           If the method is called asynchronously,
           returns the request thread.
  :rtype: None
code: def update_tag_by_tag_id(
      self,
      dataset_id: Annotated[
          constr(strict=True),
          Field(..., description="ObjectId of the dataset"),
      ],
      tag_id: Annotated[
          constr(strict=True),
          Field(..., description="ObjectId of the tag"),
      ],
      tag_update_request: Annotated[
          TagUpdateRequest,
          Field(..., description="updated data for tag"),
      ],
      **kwargs,
  ) -> None:  # noqa: E501
      """update_tag_by_tag_id  # noqa: E501
  
      update information about a specific tag  # noqa: E501
      This method makes a synchronous HTTP request by default. To make an
      asynchronous HTTP request, please pass async_req=True
  
      >>> thread = api.update_tag_by_tag_id(dataset_id, tag_id, tag_update_request, async_req=True)
      >>> result = thread.get()
  
      :param dataset_id: ObjectId of the dataset (required)
      :type dataset_id: str
      :param tag_id: ObjectId of the tag (required)
      :type tag_id: str
      :param tag_update_request: updated data for tag (required)
      :type tag_update_request: TagUpdateRequest
      :param async_req: Whether to execute the request asynchronously.
      :type async_req: bool, optional
      :param _request_timeout: timeout setting for this request. If one
                               number provided, it will be total request
                               timeout. It can also be a pair (tuple) of
                               (connection, read) timeouts.
      :return: Returns the result object.
               If the method is called asynchronously,
               returns the request thread.
      :rtype: None
      """
      kwargs["_return_http_data_only"] = True
      if "_preload_content" in kwargs:
          raise ValueError(
              "Error! Please call the update_tag_by_tag_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"
          )
      return self.update_tag_by_tag_id_with_http_info(
          dataset_id, tag_id, tag_update_request, **kwargs
      )
  
imports: import re
  import io
  import warnings
  from pydantic import validate_arguments, ValidationError
  from typing_extensions import Annotated
  from pydantic import Field, StrictBool, StrictInt, StrictStr, conint, constr, validator
  from typing import List, Optional, Union
  from lightly.openapi_generated.swagger_client.models.create_entity_response import CreateEntityResponse
  from lightly.openapi_generated.swagger_client.models.file_name_format import FileNameFormat
  from lightly.openapi_generated.swagger_client.models.file_output_format import FileOutputFormat
  from lightly.openapi_generated.swagger_client.models.filename_and_read_url import FilenameAndReadUrl
  from lightly.openapi_generated.swagger_client.models.initial_tag_create_request import InitialTagCreateRequest
  from lightly.openapi_generated.swagger_client.models.label_box_data_row import LabelBoxDataRow
  from lightly.openapi_generated.swagger_client.models.label_box_v4_data_row import LabelBoxV4DataRow
  from lightly.openapi_generated.swagger_client.models.label_studio_task import LabelStudioTask
  from lightly.openapi_generated.swagger_client.models.sama_task import SamaTask
  from lightly.openapi_generated.swagger_client.models.tag_arithmetics_request import TagArithmeticsRequest
  from lightly.openapi_generated.swagger_client.models.tag_arithmetics_response import TagArithmeticsResponse
  from lightly.openapi_generated.swagger_client.models.tag_bit_mask_response import TagBitMaskResponse
  from lightly.openapi_generated.swagger_client.models.tag_create_request import TagCreateRequest
  from lightly.openapi_generated.swagger_client.models.tag_data import TagData
  from lightly.openapi_generated.swagger_client.models.tag_update_request import TagUpdateRequest
  from lightly.openapi_generated.swagger_client.models.tag_upsize_request import TagUpsizeRequest
  from lightly.openapi_generated.swagger_client.api_client import ApiClient
  from lightly.openapi_generated.swagger_client.api_response import ApiResponse
  from lightly.openapi_generated.swagger_client.exceptions import ApiTypeError, ApiValueError
label_desc: Use image node_id 32 for calling the TagsApi obj's underlying member method code with example usage: obj.update_tag_by_tag_id(dataset_id, tag_id, tag_update_request) and returns: self