code: def _block_extra(b):
      if "frames" not in b:
          # old snapshot format made it more complicated to get frames/allocated size
          return _block_extra_legacy(b)
      return b["frames"], b["requested_size"]
  
imports: import pickle
  import sys
  import os
  import io
  import subprocess
  import json
  from functools import lru_cache
  from typing import Any
  from itertools import groupby
  import base64
  import warnings
label_desc: Use image node_id 5 for calling a global function with example usage: _block_extra(b) and returns: b,  b, _block_extra_legacy