class_docstr: Protocol definition of a Dataset that has a valid targets field.
class_docstr_tok: ["Protocol","definition","of","a","Dataset","that","has","a","valid","targets","field","."]
docstr: A sequence of elements describing the targets of each pattern.
docstr_tok: ["A","sequence","of","elements","describing","the","targets","of","each","pattern","."]
code: def targets(self) -> Sequence[TTargetType_co]:
      """
      A sequence of elements describing the targets of each pattern.
      """
      ...
  
imports: from typing import TypeVar, SupportsInt, Sequence
  from torch.utils.data.dataset import Dataset
  from typing_extensions import Protocol
label_desc: Use image node_id 1 for calling the IDatasetWithTargets obj's underlying member method code with example usage: obj.targets() without return types