code: def check_stoplimit_prices(price, label):
      """
      Check to make sure the stop/limit prices are reasonable and raise
      a BadOrderParameters exception if not.
      """
      try:
          if not isfinite(price):
              raise BadOrderParameters(
                  msg="Attempted to place an order with a {} price "
                  "of {}.".format(label, price)
              )
      # This catches arbitrary objects
      except TypeError:
          raise BadOrderParameters(
              msg="Attempted to place an order with a {} price "
              "of {}.".format(label, type(price))
          )
  
      if price < 0:
          raise BadOrderParameters(
              msg="Can't place a {} order with a negative price.".format(
                  label
              )
          )
  
imports: import abc
  from sys import float_info
  from six import with_metaclass
  from numpy import isfinite
  import zipline.utils.math_utils
  from zipline.errors import BadOrderParameters
  from zipline.utils.compat import consistent_round
label_desc: Use image node_id 2 for calling a global function with example usage: check_stoplimit_prices(price, label) without return types