code: def create_stock_dividend(
      sid, payment_sid, ratio, declared_date, ex_date, pay_date
  ):
      return Event(
          {
              "sid": sid,
              "payment_sid": payment_sid,
              "ratio": ratio,
              "net_amount": None,
              "gross_amount": None,
              "dt": pd.tslib.normalize_date(declared_date),
              "ex_date": pd.tslib.normalize_date(ex_date),
              "pay_date": pd.tslib.normalize_date(pay_date),
              "type": DATASOURCE_TYPE.DIVIDEND,
              "source_id": "MockDividendSource",
          }
      )
  
imports: import pandas
  import numpy
  from datetime import timedelta, datetime
  from catalyst.assets import Asset
  from catalyst.finance.transaction import Transaction
  from catalyst.protocol import Event, DATASOURCE_TYPE
  from catalyst.sources import SpecificEquityTrades
  from catalyst.finance.trading import SimulationParameters
  from catalyst.sources.test_source import create_trade
  from catalyst.data.loader import load_from_yahoo, load_bars_from_yahoo
  from catalyst.utils.calendars import get_calendar
  from catalyst.utils.input_validation import expect_types
label_desc: Use image node_id 5 for calling a global function with example usage: create_stock_dividend(sid, payment_sid, ratio, declared_date, ex_date, pay_date) and returns: Event