根据所提供的输入代码和要求，编写一个生成器函数。
生成器模板：
def generate_numbers(start, increment, length):
    """
    Generate a sequence of numbers starting from `start`, incrementing by
    `increment`, and generating `length` numbers in total.
    """
    number = start
    for i in range(length):
        yield number
        number += increment

要求：
- start = 5
- increment = 2
- length = 4
以下是符合要求的生成器函数：

```
def generate_numbers(start, increment, length):
    """
    Generate a sequence of numbers starting from `start`, incrementing by
    `increment`, and generating `length` numbers in total.
    """
    number = start
    for i in range(length):
        yield number
        number += increment
```

可以这样使用函数:

```
for number in generate_numbers(5, 2, 4):
    print(number)
```

输出:
```
5
7
9
11
```