code: def is_bits_nm(nm):
      
      try:
          bits = int(str(nm))
      except ValueError:
          return False
      if bits > 32 or bits < 0:
          return False
      return True
docs: Return true if the netmask is in bits notatation.