code: def _check_data_column_metadata_consistency(all_columns):
      # It can never be the case in a released version of pyarrow that
      # c['name'] is None *and* 'field_name' is not a key in the column metadata,
      # because the change to allow c['name'] to be None and the change to add
      # 'field_name' are in the same release (0.8.0)
      assert all(
          (c["name"] is None and "field_name" in c)
          or c["name"] is not None
          for c in all_columns
      )
  
imports: import ast
  from collections.abc import Sequence
  from concurrent import futures
  import concurrent.futures.thread
  from copy import deepcopy
  from itertools import zip_longest
  import json
  import operator
  import re
  import warnings
  import numpy
  import pyarrow
  from pyarrow.lib import _pandas_api, frombytes
label_desc: Use image node_id 24 for calling a global function with example usage: _check_data_column_metadata_consistency(all_columns) without return types