code: def check_data_format(data_format: str) -> None:
      if data_format not in {"json", "yaml"}:
          raise ValueError(
              "Unknown data_format {}. Supported formats are: 'json' and 'yaml'".format(
                  data_format
              )
          )
  
imports: from __future__ import absolute_import
  import json
  import typing
  import warnings
  from abc import ABC, ABCMeta, abstractmethod
  from typing import IO, Any, Callable, Dict, Optional, Tuple, Type, Union
  from albumentations import __version__
label_desc: Use image node_id 6 for calling a global function with example usage: check_data_format(data_format) without return types