class_docstr: Mixin of helpers to allow upload of custom metadata.
docstr: Verifies that the custom metadata is in the correct format.
  
  Args:
      custom_metadata:
          Dictionary of custom metadata, see upload_custom_metadata for
          the required format.
  
  Raises:
      KeyError:
          If "images" or "metadata" aren't a key of custom_metadata.
docstr_tok: ["Verifies","that","the","custom","metadata","is","in","the","correct","format",".","Args",":","custom_metadata",":","Dictionary","of","custom","metadata",",","see","upload_custom_metadata","for","the","required","format",".","Raises",":","KeyError",":","If","``","images","''","or","``","metadata","''","are","n't","a","key","of","custom_metadata","."]
code: def verify_custom_metadata_format(
      self, custom_metadata: Dict
  ) -> None:
      """Verifies that the custom metadata is in the correct format.
  
      Args:
          custom_metadata:
              Dictionary of custom metadata, see upload_custom_metadata for
              the required format.
  
      Raises:
          KeyError:
              If "images" or "metadata" aren't a key of custom_metadata.
  
      """
      _assert_key_exists_in_custom_metadata(
          COCO_ANNOTATION_KEYS.images, custom_metadata
      )
      _assert_key_exists_in_custom_metadata(
          COCO_ANNOTATION_KEYS.custom_metadata, custom_metadata
      )
  
file_path: lightly/lightly/api/api_workflow_upload_metadata.py
imports: from concurrent.futures import ThreadPoolExecutor
  from typing import Any, Dict, List, Union
  from requests import Response
  from tqdm import tqdm
  from lightly.api.utils import paginate_endpoint, retry
  from lightly.openapi_generated.swagger_client.models import ConfigurationEntry, ConfigurationSetRequest, SampleDataModes, SamplePartialMode, SampleUpdateRequest
  from lightly.utils import hipify
  from lightly.utils.io import COCO_ANNOTATION_KEYS
label_desc: Use image node_id 1 for calling the _UploadCustomMetadataMixin obj's underlying member method code with example usage: obj.verify_custom_metadata_format(custom_metadata) without return types