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: create_dataset  # noqa: E501
  
  Creates a new dataset for a user  # 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_dataset(dataset_create_request, async_req=True)
  >>> result = thread.get()
  
  :param dataset_create_request: (required)
  :type dataset_create_request: DatasetCreateRequest
  :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: ["create_dataset","#","noqa",":","E501","Creates","a","new","dataset","for","a","user","#","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_dataset","(","dataset_create_request",",","async_req=True",")",">",">",">","result","=","thread.get","(",")",":","param","dataset_create_request",":","(","required",")",":","type","dataset_create_request",":","DatasetCreateRequest",":","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_dataset(
      self, dataset_create_request: DatasetCreateRequest, **kwargs
  ) -> CreateEntityResponse:  # noqa: E501
      """create_dataset  # noqa: E501
  
      Creates a new dataset for a user  # 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_dataset(dataset_create_request, async_req=True)
      >>> result = thread.get()
  
      :param dataset_create_request: (required)
      :type dataset_create_request: DatasetCreateRequest
      :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_dataset_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"
          )
      return self.create_dataset_with_http_info(
          dataset_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, StrictBool, StrictInt, StrictStr, 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.dataset_create_request import DatasetCreateRequest
  from lightly.openapi_generated.swagger_client.models.dataset_data import DatasetData
  from lightly.openapi_generated.swagger_client.models.dataset_data_enriched import DatasetDataEnriched
  from lightly.openapi_generated.swagger_client.models.dataset_update_request import DatasetUpdateRequest
  from lightly.openapi_generated.swagger_client.models.job_status_meta import JobStatusMeta
  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 DatasetsApi obj's underlying member method code with example usage: obj.create_dataset(dataset_create_request) and returns: self