input: Write a python function to check authorization in the Run method.
  assert check_authorization(CHeartBeat()) == True
  assert check_authorization(CHeartBeat(protocol=None)) == False
output: def check_authorization(obj):
      return obj.Run()
  
  class CHeartBeat:
      def __init__(self, protocol=True):
          self.protocol = protocol
  
      def Run(self):
          return self.protocol