code: def concat_and_sort(
      blocks: List["pyarrow.Table"], sort_key: "SortKey"
  ) -> "pyarrow.Table":
      check_polars_installed()
      blocks = [pl.from_arrow(block) for block in blocks]
      df = pl.concat(blocks).sort(
          sort_key.get_columns(), reverse=sort_key.get_descending()
      )
      return df.to_arrow()
  
label_desc: Use image node_id 3 for calling a global function with example usage: concat_and_sort(blocks, sort_key) and returns: df