code: def entry_to_df(entry):
      # All events in EventStoreDB have the following:
      fields = ["eventId", "eventType", "eventNumber"]
      df = pd.DataFrame(
          [
              [
                  entry["eventId"],
                  entry["eventType"],
                  entry["eventNumber"],
              ]
          ],
          columns=fields,
      )
      data = pd.json_normalize(json.loads(entry["data"]), sep="_")
      return df.merge(data, how="cross")
  
file_path: mindsdb/mindsdb/integrations/handlers/eventstoredb_handler/utils/helpers.py
imports: from urllib.parse import urlunparse, urljoin
  import re
  import pandas
  import json
  import base64
label_desc: Use image node_id 7 for calling a global function with example usage: entry_to_df(entry) and returns: df