docstr: Required information in CSV:
      - class_indexes from 0 to n
      - respective class labels i.e. hexid
      - latitude and longitude
docstr_tok: ["Required","information","in","CSV",":","-","class_indexes","from","0","to","n","-","respective","class","labels","i.e",".","hexid","-","latitude","and","longitude"]
code: def __init__(
      self,
      csv_file: str,
      skiprows=2,
      index_col="class_label",
      col_class_label="hex_id",
      col_latitute="latitude_mean",
      col_longitude="longitude_mean",
  ):
      """
      Required information in CSV:
          - class_indexes from 0 to n
          - respective class labels i.e. hexid
          - latitude and longitude
      """
      with g_pathmgr.open(csv_file, "r") as fopen:
          self._df = pd.read_csv(
              fopen, index_col=index_col, skiprows=skiprows
          )
      self._df = self._df.sort_index()
  
      self._nclasses = len(self._df.index)
      self._col_class_label = col_class_label
      self._col_latitude = col_latitute
      self._col_longitude = col_longitude
  
      # map class label (hexid) to index
      self._label2index = dict(
          zip(
              self._df[self._col_class_label].tolist(),
              list(self._df.index),
          )
      )
      self.name = os.path.splitext(os.path.basename(csv_file))[0]
      self.shortname = PARTITIONIG_MAP[self.name]
  
imports: import logging
  import os
  import sys
  from argparse import Namespace
  from typing import Any, List
  import pandas
  import torch
  from hydra.experimental import compose, initialize_config_module
  from iopath.common.file_io import g_pathmgr
  from vissl.config import AttrDict
  from vissl.data.dataset_catalog import get_data_files
  from vissl.hooks import default_hook_generator
  from vissl.utils.checkpoint import get_checkpoint_folder
  from vissl.utils.distributed_launcher import launch_distributed
  from vissl.utils.env import set_env_vars
  from vissl.utils.hydra_config import convert_to_attrdict, is_hydra_available, print_cfg
  from vissl.utils.io import load_file, save_file
  from vissl.utils.logger import setup_logging, shutdown_logging
label_desc: Use image node_id 1 to create a new Partitioning object  with example: obj = Partitioning(csv_file, skiprows, index_col, col_class_label, col_latitute, col_longitude)