code: def check_isinstance(x, allowed_types, message=""):
      if not isinstance(x, allowed_types):
          raise ivy.utils.exceptions.IvyException(
              f"type of x: {type(x)} must be one of the allowed types: {allowed_types}"
              if message == ""
              else message
          )
  
imports: import ivy
label_desc: Use image node_id 5 for calling a global function with example usage: check_isinstance(x, allowed_types, message) without return types