code: def from_msg_dict(msg: Dict[str, Union[str, int]]) -> Self:
      return Response(**msg)
  
imports: from dataclasses import dataclass, field, asdict
  from typing import Any, Dict, List, Iterator, Union
  from typing_extensions import Self
  import torch
  from mii.constants import GenerationFinishReason
  from mii.config import GenerateParamsConfig
label_desc: Use image node_id 1 for calling the Response obj's underlying member method code with example usage: obj.from_msg_dict(msg) and returns: Response