In LLM serving, each request's KV cache occupies fixed-size blocks of a memory pool; as requests come and go, free blocks become scattered (fragmented).
Given block_status, a list of ints (1 = allocated, 0 = free), implement analyze_memory_fragmentation(block_status) returning a dict with keys:
'utilization' (float): allocated blocks divided by total blocks.'num_free_fragments' (int): number of maximal runs of consecutive free blocks.'largest_free_fragment' (int): length of the longest such run; 0 if there are no free blocks.'fragmentation_ratio' (float): , where is the number of free blocks; 0.0 when there are no free blocks.Round both float values to 4 decimal places.