def sample_append_rows():
                # Create a client
                client = bigquery_storage_v1beta2.BigQueryWriteClient()

                # Initialize request argument(s)
                request = bigquery_storage_v1beta2.AppendRowsRequest(
                    write_stream="write_stream_value",
                )

                # This method expects an iterator which contains
                # 'bigquery_storage_v1beta2.AppendRowsRequest' objects
                # Here we create a generator that yields a single `request` for
                # demonstrative purposes.
                requests = [request]

                def request_generator():
                    for request in requests:
                        yield request

                # Make the request
                stream = client.append_rows(requests=request_generator())

                # Handle the response
                for response in stream:
                    print(response)