def from_dict(cls, obj: dict) -> DatasetInformation:
        """Create an instance of DatasetInformation from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return DatasetInformation.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 DatasetInformation) in the input: " + str(obj))

        _obj = DatasetInformation.parse_obj({
            "dataset_sizes": DatasetSizes.from_dict(obj.get("datasetSizes")) if obj.get("datasetSizes") is not None else None,
            "video_level_sizes": DatasetSizes.from_dict(obj.get("videoLevelSizes")) if obj.get("videoLevelSizes") is not None else None,
            "dataset_id": obj.get("datasetId"),
            "dataset_url": obj.get("datasetUrl"),
            "dataset_name": obj.get("datasetName")
        })
        return _obj
Create an instance of DatasetInformation from a dict
lightly/openapi_generated/swagger_client/models/dataset_information.py