code: def timestamp_from_pb(
      t: timestamp_pb2.Timestamp,
  ) -> datetime.datetime:
      return datetime.datetime.fromtimestamp(t.seconds + t.nanos / 1e9)
  
imports: import datetime
  import json
  from typing import List, Dict, Any, Optional, MutableMapping
  from google.protobuf import timestamp_pb2
  from .servicepb import keepsake_pb2
  from .experiment import Experiment
  from .checkpoint import Checkpoint, PrimaryMetric, CheckpointList
label_desc: Use image node_id 3 for calling a global function with example usage: timestamp_from_pb(t) and returns: datetime