class_docstr: A connection maps one output to one input.
  
  This is a self-contained data structure, which when given in the context of
  the other components in a composition, will map input/output keys/indices
  between components.
  
  Warnings
  --------
  * This data structure should not be instantiated directly! The
    class_methods attached to the class are the indended mechanisms to create
    a new instance.
class_docstr_tok: ["A","connection","maps","one","output","to","one","input",".","This","is","a","self-contained","data","structure",",","which","when","given","in","the","context","of","the","other","components","in","a","composition",",","will","map","input\/output","keys\/indices","between","components",".","Warnings","--","--","--","--","*","This","data","structure","should","not","be","instantiated","directly","!","The","class_methods","attached","to","the","class","are","the","indended","mechanisms","to","create","a","new","instance","."]
code: def _repr_pretty_(self, p, cycle):  # pragma: no cover
      if cycle:
          return
      res = (
          f"Connection("
          f"{self.source_component}.outputs.{self.source_key} >> "
          f"{self.target_component}.inputs.{self.target_key})"
      )
      p.text(res)
  
imports: import dataclasses
  from dataclasses import dataclass, field, make_dataclass
  from pathlib import Path
  from typing import Dict, Iterator, List, NamedTuple, Optional, Tuple, Type, TypeVar, Union
  import pytorch_lightning
  import torch
  from flash.core.serve.types.base import BaseType
  from flash.core.serve.utils import download_file
  from flash.core.utilities.imports import _PYDANTIC_AVAILABLE, requires
label_desc: Use image node_id 2 for calling the Connection obj's underlying member method code with example usage: obj._repr_pretty_(p, cycle) without return types