My target file is python module and looks like this:

```
def function_one(arg):
    """docstring"""

    code
    code
    code

def function_two(arg):
    """docstring"""

    code
    code
    code

```

What I'm trying to achieve is to get the body of `function_one` using either `awk`, `sed` or `grep`.

The way I want to approach this is to select a range of text between the function name and two blank lines (since every function definition ends with two blank lines).

What I've come up with so far is an `awk` command that selects text from the function name up until the first blank line:
`awk '/def function_one/,/^$/' module.py`.

However that only produces this text, since there's a blank line between my docstring and the function body:

```
def function_one(arg):
    """docstring"""

```

How should I go about defining a range starting with a string an ending with precisely **two** blank lines?