class_docstr: TagArithmeticsRequest
class_docstr_tok: ["TagArithmeticsRequest"]
docstr: Create an instance of TagArithmeticsRequest from a dict
docstr_tok: ["Create","an","instance","of","TagArithmeticsRequest","from","a","dict"]
code: def from_dict(cls, obj: dict) -> TagArithmeticsRequest:
      """Create an instance of TagArithmeticsRequest from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return TagArithmeticsRequest.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 TagArithmeticsRequest) in the input: "
                  + str(obj)
              )
  
      _obj = TagArithmeticsRequest.parse_obj(
          {
              "tag_id1": obj.get("tagId1"),
              "tag_id2": obj.get("tagId2"),
              "operation": obj.get("operation"),
              "new_tag_name": obj.get("newTagName"),
              "creator": obj.get("creator"),
              "run_id": obj.get("runId"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/tag_arithmetics_request.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, constr, validator
  from lightly.openapi_generated.swagger_client.models.tag_arithmetics_operation import TagArithmeticsOperation
  from lightly.openapi_generated.swagger_client.models.tag_creator import TagCreator
label_desc: Use image node_id 9 for calling the TagArithmeticsRequest obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, TagArithmeticsRequest