code: def get_dummy_thread(nsamples, **kwargs):
      seed = kwargs.pop('seed', False)
      ndim = kwargs.pop('ndim', 2)
      logl_start = kwargs.pop('logl_start', -np.inf)
      logl_range = kwargs.pop('logl_range', 1)
      if kwargs:
          raise TypeError('Unexpected **kwargs: {0}'.format(kwargs))
      if seed is not False:
          np.random.seed(seed)
      thread = {'logl': np.sort(np.random.random(nsamples)) * logl_range,
                'nlive_array': np.full(nsamples, 1.),
                'theta': np.random.random((nsamples, ndim)),
                'thread_labels': np.zeros(nsamples).astype(int)}
      if logl_start != -np.inf:
          thread['logl'] += logl_start
      thread['thread_min_max'] = np.asarray([[logl_start, thread['logl'][-1]]])
      return thread