code: def extract_direction(self):
          '''
          Extract image direction (i.e. compass, heading, bearing)
          '''
          fields = ['GPS GPSImgDirection',
                    'EXIF GPS GPSImgDirection',
                    'GPS GPSTrack',
                    'EXIF GPS GPSTrack']
          direction, _ = self._extract_alternative_fields(fields)
  
          if direction is not None:
              direction = normalize_bearing(direction, check_hex=True)
          return directiof extract_direction(self):
          '''
          Extract image direction (i.e. compass, heading, bearing)
          '''
          fields = ['GPS GPSImgDirection',
                    'EXIF GPS GPSImgDirection',
                    'GPS GPSTrack',
                    'EXIF GPS GPSTrack']
          direction, _ = self._extract_alternative_fields(fields)
  
          if direction is not None:
              direction = normalize_bearing(direction, check_hex=True)
          return direction
docs: Extract image direction (i.e. compass, heading, bearing)