class_docstr: DatasourceConfig
code: def actual_instance_must_validate_oneof(cls, v):
      instance = DatasourceConfig.construct()
      error_messages = []
      match = 0
      # validate data type: DatasourceConfigLIGHTLY
      if not isinstance(v, DatasourceConfigLIGHTLY):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigLIGHTLY`"
          )
      else:
          match += 1
      # validate data type: DatasourceConfigS3
      if not isinstance(v, DatasourceConfigS3):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigS3`"
          )
      else:
          match += 1
      # validate data type: DatasourceConfigS3DelegatedAccess
      if not isinstance(v, DatasourceConfigS3DelegatedAccess):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigS3DelegatedAccess`"
          )
      else:
          match += 1
      # validate data type: DatasourceConfigGCS
      if not isinstance(v, DatasourceConfigGCS):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigGCS`"
          )
      else:
          match += 1
      # validate data type: DatasourceConfigAzure
      if not isinstance(v, DatasourceConfigAzure):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigAzure`"
          )
      else:
          match += 1
      # validate data type: DatasourceConfigOBS
      if not isinstance(v, DatasourceConfigOBS):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigOBS`"
          )
      else:
          match += 1
      # validate data type: DatasourceConfigLOCAL
      if not isinstance(v, DatasourceConfigLOCAL):
          error_messages.append(
              f"Error! Input type `{type(v)}` is not `DatasourceConfigLOCAL`"
          )
      else:
          match += 1
      if match > 1:
          # more than 1 match
          raise ValueError(
              "Multiple matches found when setting `actual_instance` in DatasourceConfig with oneOf schemas: DatasourceConfigAzure, DatasourceConfigGCS, DatasourceConfigLIGHTLY, DatasourceConfigLOCAL, DatasourceConfigOBS, DatasourceConfigS3, DatasourceConfigS3DelegatedAccess. Details: "
              + ", ".join(error_messages)
          )
      elif match == 0:
          # no match
          raise ValueError(
              "No match found when setting `actual_instance` in DatasourceConfig with oneOf schemas: DatasourceConfigAzure, DatasourceConfigGCS, DatasourceConfigLIGHTLY, DatasourceConfigLOCAL, DatasourceConfigOBS, DatasourceConfigS3, DatasourceConfigS3DelegatedAccess. Details: "
              + ", ".join(error_messages)
          )
      else:
          return v
  
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 2 for calling the DatasourceConfig obj's underlying member method code with example usage: obj.actual_instance_must_validate_oneof(cls, v) and returns: v