class_docstr: Dataset loader for Flickr-30k and Flickr-8k datasets.
  
  For more info see:
      http://hockenmaier.cs.illinois.edu/8k-pictures.html
      https://shannon.cs.illinois.edu/DenotationGraph/
  
  Splits: train, val, and test
      Also known in literature as Karpathy splits
      https://cs.stanford.edu/people/karpathy/deepimagesent/
  
  Tracking license info:
      Captions have CC BY 3.0 license (see links above).
      Splits are under BSD License (see Github of NeuralTalk by Karpathy et. al.).
      Images are from Flickr. We do not own them and are only used for research purposes.
  
  Args:
      opts: command-line arguments
      is_training (Optional[bool]): A flag used to indicate training or
          validation mode. Default: True
      is_evaluation (Optional[bool]): A flag used to indicate evaluation (or
          inference) mode. Default: False
class_docstr_tok: ["Dataset","loader","for","Flickr-30k","and","Flickr-8k","datasets",".","For","more","info","see",":","http",":","\/\/hockenmaier.cs.illinois.edu\/8k-pictures.html","https",":","\/\/shannon.cs.illinois.edu\/DenotationGraph\/","Splits",":","train",",","val",",","and","test","Also","known","in","literature","as","Karpathy","splits","https",":","\/\/cs.stanford.edu\/people\/karpathy\/deepimagesent\/","Tracking","license","info",":","Captions","have","CC","BY","3.0","license","(","see","links","above",")",".","Splits","are","under","BSD","License","(","see","Github","of","NeuralTalk","by","Karpathy","et",".","al.",")",".","Images","are","from","Flickr",".","We","do","not","own","them","and","are","only","used","for","research","purposes",".","Args",":","opts",":","command-line","arguments","is_training","(","Optional","[","bool","]",")",":","A","flag","used","to","indicate","training","or","validation","mode",".","Default",":","True","is_evaluation","(","Optional","[","bool","]",")",":","A","flag","used","to","indicate","evaluation","(","or","inference",")","mode",".","Default",":","False"]
code: def __len__(self) -> int:
      return len(self.samples)
  
file_path: ml-cvnets/data/datasets/multi_modal_img_text/flickr.py
imports: import argparse
  import json
  import os
  from typing import Dict, List, Optional, Tuple
  import torch
  from data.datasets import DATASET_REGISTRY
  from data.datasets.multi_modal_img_text.base_multi_modal_img_text import BaseMultiModalImgText
  from utils import logger
  from utils.ddp_utils import is_master
label_desc: Use image node_id 2 for calling the FlickrDataset obj's underlying member method code with example usage: obj.__len__() and returns: len