code: def rotation(self):
          
          if self.screen_rotation in range(4):
              return self.screen_rotation
          return self.adb_device.rotation() or self.info['displayRotation']
docs: Rotaion of the phone
  
          0: normal
          1: home key on the right
          2: home key on the top
          3: home key on the left