class_docstr: The triplet dataset gets a list of queries and corresponding support set and returns them as triplets.
class_docstr_tok: ["The","triplet","dataset","gets","a","list","of","queries","and","corresponding","support","set","and","returns","them","as","triplets","."]
code: def __len__(self) -> int:
      return len(self.queries)
  
imports: from __future__ import annotations
  import numpy
  import pandas
  from dataclasses import dataclass, fields
  from typing import Iterator, List, Optional
  import torch
  from torch.utils.data import IterableDataset, Dataset
  from .dataset import TimeSeries, TimeSeriesDataset
label_desc: Use image node_id 2 for calling the TripletDataset obj's underlying member method code with example usage: obj.__len__() and returns: len