code: def quantization_number_field(
      dtype: Union[Type[float], Type[int]] = float, default=None
  ) -> Field:
      description = (
          "Quantization number. Output values will be rounded to the nearest increment of `q` in range."
          "Quantization makes the upper bound inclusive."
      )
      if dtype is int:
          field = schema_utils.Integer(
              default=default, allow_none=True, description=description
          )
      else:
          field = schema_utils.FloatRange(
              default=default, allow_none=True, description=description
          )
  
      return field
  
imports: from typing import List, Type, Union
  from marshmallow.fields import Field
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.schema import utils
  from ludwig.schema.hyperopt.utils import register_parameter_config
  from ludwig.schema.utils import ludwig_dataclass
label_desc: Use image node_id 1 for calling a global function with example usage: quantization_number_field(dtype, default) and returns: field