def METHOD_NAME(modelOrList, idToMatch):
    """ Returns a list of reactions that contains a reactant with the id to match.
    :param modelOrList: SBML Model or list of reactions
    :type modelOrList: libsbml.Model or list[libsbml.Reaction]
    :param idToMatch: reaction id for matching
    :type idToMatch: str
    :return: list of reactions
    :rtype: list
    """
    if isinstance(modelOrList, libsbml.Model):
        reactions = modelOrList.reactions
    else:
        reactions = modelOrList
    matches = []
    for r in reactions:
        for reactant in r.reactants:
            if reactant.getSpecies() == idToMatch:
                matches.append(r)
        for reactant in r.products:
            if reactant.getSpecies() == idToMatch:
                matches.append(r)
        for modifier in r.modifiers:
            if modifier.getSpecies() == idToMatch:
                matches.append(r)
    return matche