def collecting_callback():
    calls = []

    def cb(**kwargs):
        calls.append(kwargs)

    return cb, calls
Encodes a string to be placed in the project file output, mimicing
dataset/ETHPy150Open aws/aws-cli/tests/unit/customizations/cloudtrail/test_validation.py/collecting_callback--crossover with--dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/xcodeproj_file.py/XCObject._EncodeString