code: def is_unit_paused_set():
      
      try:
          with unitdata.HookData()() as t:
              kv = t[0]
              # transform something truth-y into a Boolean.
              return not(not(kv.get('unit-paused')))
      except Exception:
          return False
docs: Return the state of the kv().get('unit-paused').
      This does NOT verify that the unit really is paused.
  
      To help with units that don't have HookData() (testing)
      if it excepts, return False