class_docstr: TextSet wraps a set of texts with status.
docstr: Randomly split into list of TextSet with provided weights.
  Only available for DistributedTextSet for now.
  
  :param weights: List of float indicating the split portions.
docstr_tok: ["Randomly","split","into","list","of","TextSet","with","provided","weights",".","Only","available","for","DistributedTextSet","for","now",".",":","param","weights",":","List","of","float","indicating","the","split","portions","."]
code: def random_split(self, weights):
      """
      Randomly split into list of TextSet with provided weights.
      Only available for DistributedTextSet for now.
  
      :param weights: List of float indicating the split portions.
      """
      jvalues = callZooFunc(
          self.bigdl_type, "textSetRandomSplit", self.value, weights
      )
      return [TextSet(jvalue=jvalue) for jvalue in list(jvalues)]
  
imports: import six
  from bigdl.dllib.utils.common import JavaValue
  from bigdl.dllib.utils.file_utils import callZooFunc
  from pyspark import RDD
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 16 for calling the TextSet obj's underlying member method code with example usage: obj.random_split(weights) and returns: unknown