def _generate_processing_blocks(start_id, min_blocks=0, max_blocks=4):
    """Generate a number of Processing Blocks"""
    processing_blocks = []
    num_blocks = random.randint(min_blocks, max_blocks)
    for i in range(start_id, start_id + num_blocks):
        _id = 'sip-pb{:03d}'.format(i)
        block = dict(id=_id, resources_requirement={}, workflow={})
        processing_blocks.append(block)
    return processing_blocks
Generate a number of Processing Blocks