class_docstr: Dataset loader for Libsvm data format 
class_docstr_tok: ["Dataset","loader","for","Libsvm","data","format"]
code: def decode_libsvm(columns):
      map_func = lambda pair: (int(pair[0]), float(pair[1]))
      id, value = zip(
          *map(lambda col: map_func(col.split(":")), columns[:-1])
      )
      sample = {
          "id": torch.LongTensor(id),
          "value": torch.FloatTensor(value),
          "y": float(columns[-1]),
      }
      return sample
  
imports: import calendar
  import os
  import time
  import requests
  import json
  from typing import List, Dict
  import traceback
  import orjson
  from argparse import Namespace
  from shared_config import parse_config_arguments
  from torch.utils.data import Dataset
  import torch
label_desc: Use image node_id 1 for calling the LibsvmDataset obj's underlying member method code with example usage: obj.decode_libsvm(columns) and returns: sample