def METHOD_NAME(block_type, data, **kwargs):
    usage_id = str(METHOD_NAME.id_counter)
    METHOD_NAME.id_counter += 1
    mock_scope_ids = Mock(usage_id=usage_id)
    block = block_type(
        mock_runtime,
        field_data=DictFieldData(data),
        scope_ids=mock_scope_ids,
        **kwargs
    )
    block.category = 'test'
    blocks_by_id[usage_id] = block
    parent = kwargs.get('for_parent')
    if parent:
        parent.children.append(usage_id)
        block.parent = parent.scope_ids.usage_id
    return block