def METHOD_NAME(self, oid):
    # type: (OID) -> OIDMatch
    if not self._enforce_constraints:
        # if enforce_constraints is false, then MIB resolution has not been done yet
        # so we need to do it manually. We have to specify the mibs that we will need
        # to resolve the name.
        oid.resolve(self._mib_view_controller)
    mib_symbol = oid.get_mib_symbol()
    return OIDMatch(name=mib_symbol.symbol, indexes=mib_symbol.prefix)