code: def config_from_pb(
      conf_pb: Optional[pb.Config],
  ) -> Optional[Dict[str, Any]]:
      if not conf_pb:
          return None
      if not conf_pb.repository and not conf_pb.storage:
          return None
      return {
          "repository": conf_pb.repository,
          "storage": conf_pb.storage,
      }
  
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 8 for calling a global function with example usage: config_from_pb(conf_pb) and returns: dict, None, None