code: def extract_orientation(self):
          '''
          Extract image orientation
          '''
          fields = ['Image Orientation']
          orientation, _ = self._extract_alternative_fields(
              fields, default=1, field_type=int)
          if orientation not in range(1, 9):
              return 1
          return orientatiof extract_orientation(self):
          '''
          Extract image orientation
          '''
          fields = ['Image Orientation']
          orientation, _ = self._extract_alternative_fields(
              fields, default=1, field_type=int)
          if orientation not in range(1, 9):
              return 1
          return orientation
docs: Extract image orientation