class_docstr: DatasourceConfig
code: def from_dict(cls, obj: dict) -> DatasourceConfig:
      return cls.from_json(json.dumps(obj))
  
imports: from __future__ import annotations
  from inspect import getfullargspec
  import json
  import pprint
  import re
  from typing import Any, List, Optional
  from pydantic import BaseModel, Field, StrictStr, ValidationError, validator
  from lightly.openapi_generated.swagger_client.models.datasource_config_azure import DatasourceConfigAzure
  from lightly.openapi_generated.swagger_client.models.datasource_config_gcs import DatasourceConfigGCS
  from lightly.openapi_generated.swagger_client.models.datasource_config_lightly import DatasourceConfigLIGHTLY
  from lightly.openapi_generated.swagger_client.models.datasource_config_local import DatasourceConfigLOCAL
  from lightly.openapi_generated.swagger_client.models.datasource_config_obs import DatasourceConfigOBS
  from lightly.openapi_generated.swagger_client.models.datasource_config_s3 import DatasourceConfigS3
  from lightly.openapi_generated.swagger_client.models.datasource_config_s3_delegated_access import DatasourceConfigS3DelegatedAccess
  from typing import Any, List
  from pydantic import StrictStr, Field, Extra
label_desc: Use image node_id 3 for calling the DatasourceConfig obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: cls