code: def validate_event_metadata(
      event_dates, event_timestamps, event_sids
  ):
      assert is_sorted_ascending(
          event_dates
      ), "event dates must be sorted"
      assert (
          len(event_sids) == len(event_dates) == len(event_timestamps)
      ), "mismatched arrays: %d != %d != %d" % (
          len(event_sids),
          len(event_dates),
          len(event_timestamps),
      )
  
file_path: zipline/zipline/pipeline/loaders/utils.py
imports: import numpy
  import pandas
  from zipline.errors import NoFurtherDataError
  from zipline.pipeline.common import TS_FIELD_NAME, SID_FIELD_NAME
  from zipline.utils.numpy_utils import categorical_dtype
label_desc: Use image node_id 2 for calling a global function with example usage: validate_event_metadata(event_dates, event_timestamps, event_sids) without return types