def METHOD_NAME(sectionlist):
    """Define mechanisms"""
    if sectionlist == "alldend":
        seclist_locs = [
            ephys.locations.NrnSeclistLocation("basal", seclist_name="basal")
        ]
    elif sectionlist == "somadend":
        seclist_locs = [
            ephys.locations.NrnSeclistLocation(
                "basal", seclist_name="basal"),
            ephys.locations.NrnSeclistLocation(
                "somatic", seclist_name="somatic")
        ]
    elif sectionlist == "somaxon":
        seclist_locs = [
            ephys.locations.NrnSeclistLocation(
                "axonal", seclist_name="axonal"),
            ephys.locations.NrnSeclistLocation(
                "somatic", seclist_name="somatic")
        ]
    elif sectionlist == "allact":
        seclist_locs = [
            ephys.locations.NrnSeclistLocation(
                "basal", seclist_name="basal"),
            ephys.locations.NrnSeclistLocation(
                "somatic", seclist_name="somatic"),
            ephys.locations.NrnSeclistLocation(
                "axonal", seclist_name="axonal")
        ]
    else:
        seclist_locs = [ephys.locations.NrnSeclistLocation(
            sectionlist,
            seclist_name=sectionlist)]
    return seclist_locs