code: def has_event(cls, event: str | EventListener) -> bool:
      return event in cls.EVENTS
  
imports: from __future__ import annotations
  import abc
  import hashlib
  import json
  import sys
  import warnings
  from abc import ABC, abstractmethod
  from enum import Enum
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Callable
  from gradio_client.documentation import set_documentation_group
  from PIL import Image
  from gradio import utils
  from gradio.blocks import Block, BlockContext
  from gradio.component_meta import ComponentMeta
  from gradio.data_classes import GradioDataModel
  from gradio.events import EventListener
  from gradio.layouts import Form
  from gradio.processing_utils import move_files_to_cache
label_desc: Use image node_id 9 for calling the ComponentBase obj's underlying member method code with example usage: obj.has_event(cls, event) and returns: unknown