code: def find_bucket(length, buckets):
      """
      Find bucket.
      """
      for bucket in buckets:
          if length <= bucket:
              return bucket
      return buckets[-1]
  
file_path: nni/examples/trials/weight_sharing/ga_squad/data.py
imports: import csv
  import json
  from random import shuffle
  import numpy
label_desc: Use image node_id 12 for calling a global function with example usage: find_bucket(length, buckets) and returns: buckets, bucket