def METHOD_NAME(block_num):
    ledger_info_response = client.get_ledger_info()
    num_blocks = ledger_info_response.block_count
    num_transactions = ledger_info_response.txo_count
    block_num = int(block_num)
    if block_num < 0 or block_num >= num_blocks:
        return render_template('block404.html',
                               block_num=block_num,
                               num_blocks=num_blocks)
    METHOD_NAME = client.get_block(block_num)
    size_of_block = sys.getsizeof(METHOD_NAME)
    for signature in METHOD_NAME.signatures:
        signature.src_url = signature.src_url.split('/')[-2]
    return render_template('block.html',
                           block_num=block_num,
                           block_hash=METHOD_NAME.METHOD_NAME.contents_hash.data,
                           key_image_count=len(METHOD_NAME.key_images),
                           txo_count=len(METHOD_NAME.txos),
                           txos=METHOD_NAME.txos,
                           key_images=METHOD_NAME.key_images,
                           size_of_block=size_of_block,
                           signatures=METHOD_NAME.signatures)