code: def get_facets_from_bq_table(table: Table) -> dict[Any, Any]:
      """Get facets from BigQuery table object."""
      facets = {
          "schema": SchemaDatasetFacet(
              fields=[
                  SchemaField(
                      name=field.name,
                      type=field.field_type,
                      description=field.description,
                  )
                  for field in table.schema
              ]
          ),
          "documentation": DocumentationDatasetFacet(
              description=table.description or ""
          ),
      }
  
      return facets
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from openlineage.client.facet import ColumnLineageDatasetFacet, ColumnLineageDatasetFacetFieldsAdditional, ColumnLineageDatasetFacetFieldsAdditionalInputFields, DocumentationDatasetFacet, SchemaDatasetFacet, SchemaField
label_desc: Use image node_id 1 for calling a global function with example usage: get_facets_from_bq_table(table) and returns: facets