class_docstr: NOTE: This class is auto generated by OpenAPI Generator
  Ref: https://openapi-generator.tech
  
  Do not edit the class manually.
docstr: get_prediction_task_schema_by_task_name  # noqa: E501
  
  Get a prediction task schemas named taskName for a datasetId  # noqa: E501
  This method makes a synchronous HTTP request by default. To make an
  asynchronous HTTP request, please pass async_req=True
  
  >>> thread = api.get_prediction_task_schema_by_task_name(dataset_id, task_name, prediction_uuid_timestamp, async_req=True)
  >>> result = thread.get()
  
  :param dataset_id: ObjectId of the dataset (required)
  :type dataset_id: str
  :param task_name: The prediction task name for which one wants to list the predictions (required)
  :type task_name: str
  :param prediction_uuid_timestamp: Deprecated, currently ignored. The timestamp of when the actual predictions were created. This is used as a peg to version predictions. E.g one could upload predictions on day 1 and then create new predictions with an improved model on day 30. One can then upload the new predictions to the same dataset. 
  :type prediction_uuid_timestamp: int
  :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: PredictionTaskSchema
docstr_tok: ["get_prediction_task_schema_by_task_name","#","noqa",":","E501","Get","a","prediction","task","schemas","named","taskName","for","a","datasetId","#","noqa",":","E501","This","method","makes","a","synchronous","HTTP","request","by","default",".","To","make","an","asynchronous","HTTP","request",",","please","pass","async_req=True",">",">",">","thread","=","api.get_prediction_task_schema_by_task_name","(","dataset_id",",","task_name",",","prediction_uuid_timestamp",",","async_req=True",")",">",">",">","result","=","thread.get","(",")",":","param","dataset_id",":","ObjectId","of","the","dataset","(","required",")",":","type","dataset_id",":","str",":","param","task_name",":","The","prediction","task","name","for","which","one","wants","to","list","the","predictions","(","required",")",":","type","task_name",":","str",":","param","prediction_uuid_timestamp",":","Deprecated",",","currently","ignored",".","The","timestamp","of","when","the","actual","predictions","were","created",".","This","is","used","as","a","peg","to","version","predictions",".","E.g","one","could","upload","predictions","on","day","1","and","then","create","new","predictions","with","an","improved","model","on","day","30",".","One","can","then","upload","the","new","predictions","to","the","same","dataset",".",":","type","prediction_uuid_timestamp",":","int",":","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",":","PredictionTaskSchema"]
code: def get_prediction_task_schema_by_task_name(
      self,
      dataset_id: Annotated[
          constr(strict=True),
          Field(..., description="ObjectId of the dataset"),
      ],
      task_name: Annotated[
          constr(strict=True, min_length=1),
          Field(
              ...,
              description="The prediction task name for which one wants to list the predictions",
          ),
      ],
      prediction_uuid_timestamp: Annotated[
          Optional[conint(strict=True, ge=0)],
          Field(
              description="Deprecated, currently ignored. The timestamp of when the actual predictions were created. This is used as a peg to version predictions. E.g one could upload predictions on day 1 and then create new predictions with an improved model on day 30. One can then upload the new predictions to the same dataset. "
          ),
      ] = None,
      **kwargs,
  ) -> PredictionTaskSchema:  # noqa: E501
      """get_prediction_task_schema_by_task_name  # noqa: E501
  
      Get a prediction task schemas named taskName for a datasetId  # noqa: E501
      This method makes a synchronous HTTP request by default. To make an
      asynchronous HTTP request, please pass async_req=True
  
      >>> thread = api.get_prediction_task_schema_by_task_name(dataset_id, task_name, prediction_uuid_timestamp, async_req=True)
      >>> result = thread.get()
  
      :param dataset_id: ObjectId of the dataset (required)
      :type dataset_id: str
      :param task_name: The prediction task name for which one wants to list the predictions (required)
      :type task_name: str
      :param prediction_uuid_timestamp: Deprecated, currently ignored. The timestamp of when the actual predictions were created. This is used as a peg to version predictions. E.g one could upload predictions on day 1 and then create new predictions with an improved model on day 30. One can then upload the new predictions to the same dataset.
      :type prediction_uuid_timestamp: int
      :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: PredictionTaskSchema
      """
      kwargs["_return_http_data_only"] = True
      if "_preload_content" in kwargs:
          raise ValueError(
              "Error! Please call the get_prediction_task_schema_by_task_name_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"
          )
      return (
          self.get_prediction_task_schema_by_task_name_with_http_info(
              dataset_id, task_name, prediction_uuid_timestamp, **kwargs
          )
      )
  
imports: import re
  import io
  import warnings
  from pydantic import validate_arguments, ValidationError
  from typing_extensions import Annotated
  from pydantic import Field, conint, conlist, constr, validator
  from typing import List, Optional
  from lightly.openapi_generated.swagger_client.models.create_entity_response import CreateEntityResponse
  from lightly.openapi_generated.swagger_client.models.prediction_singleton import PredictionSingleton
  from lightly.openapi_generated.swagger_client.models.prediction_task_schema import PredictionTaskSchema
  from lightly.openapi_generated.swagger_client.models.prediction_task_schemas import PredictionTaskSchemas
  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 6 for calling the PredictionsApi obj's underlying member method code with example usage: obj.get_prediction_task_schema_by_task_name(dataset_id, task_name, prediction_uuid_timestamp) and returns: self