class_docstr: _BigQueryDataset represents a dataset that retrieves keys and values.
code: def __init__(
      self,
      client_resource,
      selected_fields,
      selected_fields_repeated,
      output_types,
      default_values,
      schema,
      data_format,
      stream,
      offset,
  ):
      # selected_fields and corresponding output_types have to be sorted because
      # of b/141251314
      sorted_fields_with_types = sorted(
          zip(
              selected_fields,
              selected_fields_repeated,
              output_types,
              default_values,
          ),
          key=itemgetter(0),
      )
      (
          selected_fields,
          selected_fields_repeated,
          output_types,
          default_values,
      ) = list(zip(*sorted_fields_with_types))
      selected_fields = list(selected_fields)
      selected_fields_repeated = list(selected_fields_repeated)
      output_types = list(output_types)
      default_values = list(default_values)
  
      tensor_shapes = list(
          [
              None,
          ]
          if repeated
          else []
          for repeated in selected_fields_repeated
      )
  
      self._element_spec = collections.OrderedDict(
          zip(
              selected_fields,
              (
                  tensor_spec.TensorSpec(shape, dtype)
                  for (shape, dtype) in zip(tensor_shapes, output_types)
              ),
          )
      )
  
      variant_tensor = core_ops.io_big_query_dataset(
          client=client_resource,
          selected_fields=selected_fields,
          output_types=output_types,
          default_values=default_values,
          schema=schema,
          data_format=data_format.value,
          stream=stream,
          offset=offset,
      )
      super().__init__(variant_tensor)
  
imports: import collections
  import enum
  import tensorflow
  from operator import itemgetter
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.util import deprecation
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 to create a new _BigQueryDataset object from inherited base classes: dataset_ops with example: obj = _BigQueryDataset(client_resource, selected_fields, selected_fields_repeated, output_types, default_values, schema, data_format, stream, offset)