human
I wrote the below code

    candidates = filter((lambda x: ('parameterDefinitions' in x)), props)
    if candidates:
        def transform(x):
            return {x['name']: x['defaultParameterValue']['value']}
        return {k: v for d in map(transform, candidates[0]['parameterDefinitions']) for (k, v) in d.items()}
    return None

What's a good function header?

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

def properties_to_params(props):