code: def format_hypernodes(events, defs, drop_na):
      event_nodes = events.copy()
      event_nodes[defs.node_type] = defs.event_id
      event_nodes[defs.category] = defs.event_type
      event_nodes[defs.node_id] = event_nodes[defs.event_id]
      event_nodes[defs.title] = event_nodes[defs.event_id]
      return event_nodes
  
imports: from typing import TYPE_CHECKING, Any, Dict, List, Optional
  from .Engine import Engine, DataframeLike, DataframeLocalLike
  import numpy, pandas, pyarrow, sys
  from .util import setup_logger
label_desc: Use image node_id 17 for calling a global function with example usage: format_hypernodes(events, defs, drop_na) and returns: event_nodes