def METHOD_NAME(
    instrument: InstrumentContext,
    volume: float,
    location: Location,
    flow_rate: float,
    rate: float,
) -> command_types.DispenseCommand:
    location_text = stringify_location(location)
    template = "Dispensing {volume} uL into {location} at {flow} uL/sec"
    text = template.format(volume=float(volume), location=location_text, flow=flow_rate)
    return {
        "name": command_types.DISPENSE,
        "payload": {
            "instrument": instrument,
            "volume": volume,
            "location": location,
            "rate": rate,
            "text": text,
        },
    }