code: def _bounds_to_array(bounds):
      
      elements = []
      for value in bounds:
          if all_elements_equal(value):
              elements.append(Scalar(get_single_value(value), ctype='mot_float_type'))
          else:
              elements.append(Array(value, ctype='mot_float_type', as_scalar=True))
      return CompositeArray(elements, 'mot_float_type', address_space='local')
docs: Create a CompositeArray to hold the bounds.