code: def test_fixed_bucket_sampler_compactness():
      samples = list(
          s.FixedBucketSampler(
              np.arange(16, 32),
              8,
              num_buckets=2,
              bucket_scheme=s.ConstWidthBucket(),
          )
      )
      assert len(samples) == 2
  
file_path: gluon-nlp/tests/test_data_sampler.py
imports: import pytest
  import numpy
  from mxnet.gluon import data
  from gluonnlp.data import sampler
label_desc: Use image node_id 5 for calling a global function with example usage: test_fixed_bucket_sampler_compactness() without return types