@staticmethod
  def validate (obj):
    import foam.events
    ev = foam.events.Event
    try:
      getattr(ev, obj)
      return True
    except __HOLE__:
      return False
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/types/trigger_type.py/TriggerType.validate