class_docstr: DatasourceConfig
docstr: Returns the dict representation of the actual instance
docstr_tok: ["Returns","the","dict","representation","of","the","actual","instance"]
code: def to_dict(self, by_alias: bool = False) -> dict:
      """Returns the dict representation of the actual instance"""
      if self.actual_instance is None:
          return None
  
      to_dict = getattr(self.actual_instance, "to_dict", None)
      if callable(to_dict):
          return self.actual_instance.to_dict(by_alias=by_alias)
      else:
          # primitive type
          return self.actual_instance
  
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 6 for calling the DatasourceConfig obj's underlying member method code with example usage: obj.to_dict(by_alias) and returns: None, self, self