class_docstr: Helper methods to load, save and pre-process data used in MLlib.
  
  .. versionadded:: 1.0.0
docstr: Parses a line in LIBSVM format into (label, indices, values).
docstr_tok: ["Parses","a","line","in","LIBSVM","format","into","(","label",",","indices",",","values",")","."]
code: def _parse_libsvm_line(
      line: str,
  ) -> Tuple[float, np.ndarray, np.ndarray]:
      """
      Parses a line in LIBSVM format into (label, indices, values).
      """
      items = line.split(None)
      label = float(items[0])
      nnz = len(items) - 1
      indices = np.zeros(nnz, dtype=np.int32)
      values = np.zeros(nnz)
      for i in range(nnz):
          index, value = items[1 + i].split(":")
          indices[i] = int(index) - 1
          values[i] = float(value)
      return label, indices, values
  
imports: import sys
  from functools import reduce
  import numpy
  from pyspark import SparkContext, since
  from pyspark.mllib.common import callMLlibFunc, inherit_doc
  from pyspark.mllib.linalg import Vectors, SparseVector, _convert_to_vector
  from pyspark.sql import DataFrame
  from typing import Generic, Iterable, List, Optional, Tuple, Type, TypeVar, cast, TYPE_CHECKING
  from pyspark.context import SparkContext
  from pyspark.mllib.linalg import Vector
  from pyspark.rdd import RDD
  from pyspark.sql.dataframe import DataFrame
label_desc: Use image node_id 1 for calling the MLUtils obj's underlying member method code with example usage: obj._parse_libsvm_line(line) and returns: label,  indices,  values