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
  
imports: import json
  import re
  from typing import Any, Union
  from marshmallow import fields, post_dump, post_load, pre_load, Schema
  from marshmallow.validate import Length, ValidationError
  from superset import security_manager
  from superset.exceptions import SupersetException
  from superset.tags.models import TagType
  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