class_docstr: `LFW <http://vis-www.cs.umass.edu/lfw/>`_ Dataset.
  
  Args:
      root (string): Root directory of dataset where directory
          ``lfw-py`` exists or will be saved to if download is set to True.
      split (string, optional): The image split to use. Can be one of ``train``, ``test``,
          ``10fold`` (default).
      image_set (str, optional): Type of image funneling to use, ``original``, ``funneled`` or
          ``deepfunneled``. Defaults to ``funneled``.
      transform (callable, optional): A function/transform that  takes in a PIL image
          and returns a transformed version. E.g, ``transforms.RandomRotation``
      target_transform (callable, optional): A function/transform that takes in the
          target and transforms it.
      download (bool, optional): If true, downloads the dataset from the internet and
          puts it in root directory. If dataset is already downloaded, it is not
          downloaded again.
class_docstr_tok: ["`","LFW","<","http",":","\/\/vis-www.cs.umass.edu\/lfw\/",">","`","_","Dataset",".","Args",":","root","(","string",")",":","Root","directory","of","dataset","where","directory","``","lfw-py","``","exists","or","will","be","saved","to","if","download","is","set","to","True",".","split","(","string",",","optional",")",":","The","image","split","to","use",".","Can","be","one","of","``","train","``",",","``","test","``",",","``","10fold","``","(","default",")",".","image_set","(","str",",","optional",")",":","Type","of","image","funneling","to","use",",","``","original","``",",","``","funneled","``","or","``","deepfunneled","``",".","Defaults","to","``","funneled","``",".","transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","a","PIL","image","and","returns","a","transformed","version",".","E.g",",","``","transforms.RandomRotation","``","target_transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","the","target","and","transforms","it",".","download","(","bool",",","optional",")",":","If","true",",","downloads","the","dataset","from","the","internet","and","puts","it","in","root","directory",".","If","dataset","is","already","downloaded",",","it","is","not","downloaded","again","."]
code: def _get_classes(self) -> Dict[str, int]:
      with open(os.path.join(self.root, self.names)) as f:
          lines = f.readlines()
          names = [line.strip().split()[0] for line in lines]
      class_to_idx = {name: i for i, name in enumerate(names)}
      return class_to_idx
  
imports: import os
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  from PIL import Image
  from .utils import check_integrity, download_and_extract_archive, download_url, verify_str_arg
  from .vision import VisionDataset
label_desc: Use image node_id 3 for calling the LFWPeople obj's underlying member method code with example usage: obj._get_classes() and returns: class_to_idx