docstr: Attach a LightningWork to this PayLoad.
  
  Args:
      work: LightningWork to be attached to this Payload.
docstr_tok: ["Attach","a","LightningWork","to","this","PayLoad",".","Args",":","work",":","LightningWork","to","be","attached","to","this","Payload","."]
code: def _attach_work(self, work: "LightningWork") -> None:
      """Attach a LightningWork to this PayLoad.
  
      Args:
          work: LightningWork to be attached to this Payload.
  
      """
      if self._origin is None:
          # Can become an owner only if there is not already one
          self._origin = work.name
      self._consumer = work.name
  
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 10 for calling the _BasePayload obj's underlying member method code with example usage: obj._attach_work(work) without return types