<｜begin▁of▁sentence｜>### Instruction:
Given an igraph Graph object 'g', how can you calculate and print the cohesion of a group at a specified index using the CohesiveBlocks functionality?
### Response:
from igraph import Graph
from igraph import CohesiveBlocks

# Assume g is a predefined igraph Graph object
blocks = CohesiveBlocks(g)
cohesive_blocks = blocks.calculate()

# Choose a group index to find its cohesion
group_index = 0
cohesion_score = cohesive_blocks.cohesion(group_index)

print(f'Cohesion of group {group_index}:', cohesion_score)
<|EOT|>
