class_docstr: Defines a container of event triggers' metadata.
class_docstr_tok: ["Defines","a","container","of","event","triggers","'","metadata","."]
code: def __init__(self, _meta=None):
      if _meta is None:
          _meta = []
  
      _meta.sort(
          key=lambda x: x.get("timestamp") or float("-inf"),
          reverse=True,
      )
  
      self._runs = None
      self._events = [
          MetaflowEvent(
              **{
                  **obj,
                  # Add timestamp as datetime. Guaranteed to exist for Metaflow
                  # events - best effort for everything else.
                  **(
                      {
                          "timestamp": datetime.fromtimestamp(
                              obj["timestamp"]
                          )
                      }
                      if obj.get("timestamp")
                      and isinstance(obj.get("timestamp"), int)
                      else {}
                  ),
              }
          )
          for obj in _meta
      ]
  
file_path: metaflow/metaflow/events.py
imports: from collections import OrderedDict, namedtuple
  from datetime import datetime
label_desc: Use image node_id 1 to create a new Trigger object from inherited base classes: object with example: obj = Trigger(_meta)