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: (Deprecated) create_or_update_active_learning_score_by_tag_id  # noqa: E501
  
  Create or update active learning score object by tag id  # noqa: E501
  This method makes a synchronous HTTP request by default. To make an
  asynchronous HTTP request, please pass async_req=True
  
  >>> thread = api.create_or_update_active_learning_score_by_tag_id(dataset_id, tag_id, active_learning_score_create_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 active_learning_score_create_request: (required)
  :type active_learning_score_create_request: ActiveLearningScoreCreateRequest
  :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: CreateEntityResponse
docstr_tok: ["(","Deprecated",")","create_or_update_active_learning_score_by_tag_id","#","noqa",":","E501","Create","or","update","active","learning","score","object","by","tag","id","#","noqa",":","E501","This","method","makes","a","synchronous","HTTP","request","by","default",".","To","make","an","asynchronous","HTTP","request",",","please","pass","async_req=True",">",">",">","thread","=","api.create_or_update_active_learning_score_by_tag_id","(","dataset_id",",","tag_id",",","active_learning_score_create_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","active_learning_score_create_request",":","(","required",")",":","type","active_learning_score_create_request",":","ActiveLearningScoreCreateRequest",":","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",":","CreateEntityResponse"]
code: def create_or_update_active_learning_score_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"),
      ],
      active_learning_score_create_request: ActiveLearningScoreCreateRequest,
      **kwargs,
  ) -> CreateEntityResponse:  # noqa: E501
      """(Deprecated) create_or_update_active_learning_score_by_tag_id  # noqa: E501
  
      Create or update active learning score object by tag id  # noqa: E501
      This method makes a synchronous HTTP request by default. To make an
      asynchronous HTTP request, please pass async_req=True
  
      >>> thread = api.create_or_update_active_learning_score_by_tag_id(dataset_id, tag_id, active_learning_score_create_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 active_learning_score_create_request: (required)
      :type active_learning_score_create_request: ActiveLearningScoreCreateRequest
      :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: CreateEntityResponse
      """
      kwargs["_return_http_data_only"] = True
      if "_preload_content" in kwargs:
          raise ValueError(
              "Error! Please call the create_or_update_active_learning_score_by_tag_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"
          )
      return self.create_or_update_active_learning_score_by_tag_id_with_http_info(
          dataset_id,
          tag_id,
          active_learning_score_create_request,
          **kwargs,
      )
  
imports: import re
  import io
  import warnings
  from pydantic import validate_arguments, ValidationError
  from typing_extensions import Annotated
  from pydantic import Field, conint, constr, validator
  from typing import List, Optional
  from lightly.openapi_generated.swagger_client.models.active_learning_score_create_request import ActiveLearningScoreCreateRequest
  from lightly.openapi_generated.swagger_client.models.active_learning_score_data import ActiveLearningScoreData
  from lightly.openapi_generated.swagger_client.models.active_learning_score_types_v2_data import ActiveLearningScoreTypesV2Data
  from lightly.openapi_generated.swagger_client.models.active_learning_score_v2_data import ActiveLearningScoreV2Data
  from lightly.openapi_generated.swagger_client.models.create_entity_response import CreateEntityResponse
  from lightly.openapi_generated.swagger_client.models.tag_active_learning_scores_data import TagActiveLearningScoresData
  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 2 for calling the ScoresApi obj's underlying member method code with example usage: obj.create_or_update_active_learning_score_by_tag_id(dataset_id, tag_id, active_learning_score_create_request) and returns: self