docstr: Instantiate a Payload from a dictionary.
docstr_tok: ["Instantiate","a","Payload","from","a","dictionary","."]
code: def from_dict(cls, content: dict) -> "_BasePayload":
      """Instantiate a Payload from a dictionary."""
      payload = cls(None)
      payload._name = content["name"]
      payload._origin = content["origin_name"]
      payload._consumer = content["consumer_name"]
      payload._metadata = content["metadata"]
      return payload
  
imports: import hashlib
  import pathlib
  import pickle
  from abc import ABC, abstractmethod
  from time import sleep
  from typing import TYPE_CHECKING, Any, Optional, Union
  from lightning.app.core.constants import REMOTE_STORAGE_WAIT
  from lightning.app.core.queues import BaseQueue
  from lightning.app.storage.path import Path, _filesystem, _shared_storage_path
  from lightning.app.storage.requests import _ExistsRequest, _ExistsResponse, _GetRequest, _GetResponse
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.component import _is_flow_context
label_desc: Use image node_id 17 for calling the _BasePayload obj's underlying member method code with example usage: obj.from_dict(cls, content) and returns: payload