code: def get_buckets(sizes, num_buckets):
      buckets = np.unique(
          np.percentile(
              sizes,
              np.linspace(0, 100, num_buckets + 1),
              interpolation="lower",
          )[1:]
      )
      return buckets
  
imports: import contextlib
  import itertools
  import logging
  import re
  import warnings
  from typing import Optional, Tuple
  import math
  import numpy
  import torch
  from fairseq.file_io import PathManager
  from fairseq import utils
  import os
label_desc: Use image node_id 17 for calling a global function with example usage: get_buckets(sizes, num_buckets) and returns: buckets