code: def dynamize_range_key_condition(self, range_key_condition):
          
          d = None
          if range_key_condition:
              d = {}
              for range_value in range_key_condition:
                  range_condition = range_key_condition[range_value]
                  if range_condition == 'BETWEEN':
                      if isinstance(range_value, tuple):
                          avl = [self.dynamize_value(v) for v in range_value]
                      else:
                          msg = 'BETWEEN condition requires a tuple value'
                          raise TypeError(msg)
                  elif isinstance(range_value, tuple):
                      msg = 'Tuple can only be supplied with BETWEEN condition'
                      raise TypeError(msg)
                  else:
                      avl = [self.dynamize_value(range_value)]
              d = {'AttributeValueList': avl,
                   'ComparisonOperator': range_condition}
          return d
docs: Convert a layer2 range_key_condition parameter into the
          structure required by Layer1.