class_docstr: Embedding2dCreateRequest
class_docstr_tok: ["Embedding2dCreateRequest"]
docstr: Create an instance of Embedding2dCreateRequest from a dict
docstr_tok: ["Create","an","instance","of","Embedding2dCreateRequest","from","a","dict"]
code: def from_dict(cls, obj: dict) -> Embedding2dCreateRequest:
      """Create an instance of Embedding2dCreateRequest from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return Embedding2dCreateRequest.parse_obj(obj)
  
      # raise errors for additional fields in the input
      for _key in obj.keys():
          if _key not in cls.__properties:
              raise ValueError(
                  "Error due to additional fields (not defined in Embedding2dCreateRequest) in the input: "
                  + str(obj)
              )
  
      _obj = Embedding2dCreateRequest.parse_obj(
          {
              "name": obj.get("name"),
              "dimensionality_reduction_method": obj.get(
                  "dimensionalityReductionMethod"
              ),
              "coordinates_dimension1": obj.get(
                  "coordinatesDimension1"
              ),
              "coordinates_dimension2": obj.get(
                  "coordinatesDimension2"
              ),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/embedding2d_create_request.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Union
  from pydantic import Extra, BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist
  from lightly.openapi_generated.swagger_client.models.dimensionality_reduction_method import DimensionalityReductionMethod
label_desc: Use image node_id 5 for calling the Embedding2dCreateRequest obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, Embedding2dCreateRequest