class_docstr: IODataset
docstr: Creates an `IODataset` from a libsvm file.
  
  Args:
    filename: A `tf.string` tensor containing one or more filenames.
    num_features: The number of features.
    dtype(Optional): The type of the output feature tensor.
      Default to tf.float32.
    label_dtype(Optional): The type of the output label tensor.
      Default to tf.int64.
    compression_type: (Optional.) A `tf.string` scalar evaluating to one of
      `""` (no compression), `"ZLIB"`, or `"GZIP"`.
    name: A name prefix for the IOTensor (optional).
  
  Returns:
    A `IODataset`.
docstr_tok: ["Creates","an","`","IODataset","`","from","a","libsvm","file",".","Args",":","filename",":","A","`","tf.string","`","tensor","containing","one","or","more","filenames",".","num_features",":","The","number","of","features",".","dtype","(","Optional",")",":","The","type","of","the","output","feature","tensor",".","Default","to","tf.float32",".","label_dtype","(","Optional",")",":","The","type","of","the","output","label","tensor",".","Default","to","tf.int64",".","compression_type",":","(","Optional",".",")","A","`","tf.string","`","scalar","evaluating","to","one","of","`","``","''","`","(","no","compression",")",",","`","``","ZLIB","''","`",",","or","`","``","GZIP","''","`",".","name",":","A","name","prefix","for","the","IOTensor","(","optional",")",".","Returns",":","A","`","IODataset","`","."]
code: def from_libsvm(
      cls,
      filename,
      num_features,
      dtype=None,
      label_dtype=None,
      compression_type="",
      **kwargs,
  ):
      """Creates an `IODataset` from a libsvm file.
  
      Args:
        filename: A `tf.string` tensor containing one or more filenames.
        num_features: The number of features.
        dtype(Optional): The type of the output feature tensor.
          Default to tf.float32.
        label_dtype(Optional): The type of the output label tensor.
          Default to tf.int64.
        compression_type: (Optional.) A `tf.string` scalar evaluating to one of
          `""` (no compression), `"ZLIB"`, or `"GZIP"`.
        name: A name prefix for the IOTensor (optional).
  
      Returns:
        A `IODataset`.
      """
      with tf.name_scope(kwargs.get("name", "IOFromLibSVM")):
          return libsvm_dataset_ops.LibSVMIODataset(
              filename,
              num_features,
              dtype=dtype,
              label_dtype=label_dtype,
              compression_type=compression_type,
              internal=True,
              **kwargs,
          )
  
imports: import tensorflow
  from tensorflow_io.python.ops import io_dataset
  from tensorflow_io.python.experimental import libsvm_dataset_ops
  from tensorflow_io.python.experimental import image_dataset_ops
  from tensorflow_io.python.experimental import kinesis_dataset_ops
  from tensorflow_io.python.experimental import pubsub_dataset_ops
  from tensorflow_io.python.experimental import grpc_dataset_ops
  from tensorflow_io.python.experimental import file_dataset_ops
  from tensorflow_io.python.experimental import numpy_dataset_ops
  from tensorflow_io.python.experimental import sql_dataset_ops
  from tensorflow_io.python.experimental import video_dataset_ops
label_desc: Use image node_id 2 for calling the IODataset obj's underlying member method code with example usage: obj.from_libsvm(cls, filename, num_features, dtype, label_dtype, compression_type) and returns: libsvm_dataset_ops