code: def get_way(self, way_id, resolve_missing=False):
          
          ways = self.get_ways(way_id=way_id)
          if len(ways) == 0:
              if resolve_missing is False:
                  raise exception.DataIncomplete("Resolve missing way is disabled")
  
              query = ("\n"
                       "[out:json];\n"
                       "way({way_id});\n"
                       "out body;\n"
                       )
              query = query.format(
                  way_id=way_id
              )
              tmp_result = self.api.query(query)
              self.expand(tmp_result)
  
              ways = self.get_ways(way_id=way_id)
  
          if len(ways) == 0:
              raise exception.DataIncomplete("Unable to resolve requested way")
  
          return ways[0]
docs: Get a way by its ID.
  
          :param way_id: The way ID
          :type way_id: Integer
          :param resolve_missing: Query the Overpass API if the way is missing in the result set.
          :return: The way
          :rtype: overpy.Way
          :raises overpy.exception.DataIncomplete: The requested way is not available in the result cache.
          :raises overpy.exception.DataIncomplete: If resolve_missing is True and the way can't be resolved.