parameters: (self, lower_bound=1, upper_bound=-1, default=None)
docstring: A class that can be used to give a range of accepted shapes.
  
          Attribute:
  
          lower_bound: (int)
              The minimum valid value for the shape.
          upper_bound: (int)
              The maximum valid value for the shape.
              Set to -1 if there's no upper limit.
          default: (int) or None
              The default value that is used for initiating the model, and set in
              the metadata of the model file.
              If set to None, `lower_bound` would be used as default.
docstring_summary: A class that can be used to give a range of accepted shapes.
docstring_tokens: A class that can be used to give a range of accepted shapes .
function: def __init__(self, lower_bound=1, upper_bound=-1, default=None):
          """
          A class that can be used to give a range of accepted shapes.
  
          Attribute:
  
          lower_bound: (int)
              The minimum valid value for the shape.
          upper_bound: (int)
              The maximum valid value for the shape.
              Set to -1 if there's no upper limit.
          default: (int) or None
              The default value that is used for initiating the model, and set in
              the metadata of the model file.
              If set to None, `lower_bound` would be used as default.
          """
          self.lower_bound = lower_bound
          self.upper_bound = upper_bound
          if default is None:
              self.default = lower_bound
          else:
              if default < lower_bound:
                  raise ValueError(
                      "Default value {} is less than minimum value ({}) for range".format(
                          default, lower_bound
                      )
                  )
              if upper_bound > 0 and default > upper_bound:
                  raise ValueError(
                      "Default value {} is greater than maximum value ({}) for range".format(
                          default, upper_bound
                      )
                  )
              self.default = default
function_tokens: def __init__ ( self , lower_bound = 1 , upper_bound = - 1 , default = None ) : self . lower_bound = lower_bound self . upper_bound = upper_bound if default is None : self . default = lower_bound else : if default < lower_bound : raise ValueError ( "Default value {} is less than minimum value ({}) for range" . format ( default , lower_bound ) ) if upper_bound > 0 and default > upper_bound : raise ValueError ( "Default value {} is greater than maximum value ({}) for range" . format ( default , upper_bound ) ) self . default = default