code: def get_int_or_uuid(value):
      
      try:
          uuid.UUID(value)
          return value
      except (ValueError, AttributeError):
          return int(value)
docs: Check if a value is valid as UUID or an integer.
  
      This method is mainly used to convert floating IP id to the
      appropriate type. For floating IP id, integer is used in Nova's
      original implementation, but UUID is used in Neutron based one.