human
I wrote the below code

    def expected_datapoint_response(response):
        'Enure    that    the    "node"    endpoint    returns    a    "datapoints"    dict.\n                                '
        assert ('datapoints' in response), '"datapoints"    dictionary    not    found'
        'in    response,    got    {}'.format(response)
        for dp in response['datapoints']:
            assert ('name' in dp), '"name"    parameter    should    not    be    empty,    got    {}'.format(dp)
            if ('filesystem' in dp['name']):
                assert ('tags' in dp), '"tags"    key    not    found,    got    {}'.format(dp)
                assert ('path' in dp['tags']), '"path"    tag    not    found    for    filesystem    metric,    got    {}'.format(dp)
                assert (len(dp['tags']['path']) > 0), '"path"    tag    should    not    be    empty    for    filesystem    metrics,    got    {}'.format(dp)
        return True
    def expected_dimension_response(response):
        'Ensure    that    the    "node"    endpoint    returns    a    dimensions    dict    that\n                                contains    a    non-empty    string    for    cluster_id.\n                                '
        assert ('dimensions' in response), '"dimensions"    object    not    found    in'
        'response,    got    {}'.format(response)
        assert ('cluster_id' in response['dimensions']), '"cluster_id"    key    not'
        'found    in    dimensions,    got    {}'.format(response)
        assert (response['dimensions']['cluster_id'] != ''), 'expected    cluster    to    contain    a    value'
        return True
    for agent in dcos_api_session.slaves:
        response = dcos_api_session.metrics.get('node', node=agent)
        assert (response.status_code == 200), 'Status    code:    {},    Content    {}'.format(response.status_code, response.content)
        assert expected_datapoint_response(response.json())
        assert expected_dimension_response(response.json())
    for agent in dcos_api_session.public_slaves:
...

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def test_metrics_node(dcos_api_session):