code: def validate_json(value: Union[bytes, bytearray, str]) -> None:
      try:
          utils.validate_json(value)
      except SupersetException as ex:
          raise ValidationError("JSON not valid") from ex
  
file_path: superset/superset/annotation_layers/annotations/schemas.py
imports: from typing import Union
  from marshmallow import fields, Schema, ValidationError
  from marshmallow.validate import Length
  from superset.exceptions import SupersetException
  from superset.utils import core
label_desc: Use image node_id 1 for calling a global function with example usage: validate_json(value) without return types