code: def get_rand_ids(self, length):
      segment_ids = []
      while True:
          stats = self.get_stats()
          segments = stats["partitions"][0]["segments"]
          # random choice one segment
          segment = random.choice(segments)
          try:
              segment_ids = self._milvus.list_id_in_segment(
                  self._collection_name, segment["id"]
              )
          except Exception as e:
              logger.error(str(e))
          if not len(segment_ids):
              continue
          elif len(segment_ids) > length:
              return random.sample(segment_ids, length)
          else:
              logger.debug("Reset length: %d" % len(segment_ids))
              return segment_ids
  
imports: import random
  import logging
  import time
  from multiprocessing import Process
  from pymilvus import Milvus, DataType
  import utils
  import config
  from milvus_benchmark.runners import utils
label_desc: Use image node_id 11 for calling the MilvusClient obj's underlying member method code with example usage: obj.get_rand_ids(length) and returns: random, segment_ids