code: def is_valid(cls, arg):
          
          if not isinstance(arg, (int, long)) or isinstance(arg, bool):
              return False
          if (arg < cls._low_limit):
              return False
          if (cls._high_limit is not None) and (arg > cls._high_limit):
              return False
          return True
docs: Return True if arg is valid value for the class.