def sample_write_tensorboard_run_data():
    # Create a client
    client = aiplatform_v1.TensorboardServiceClient()

    # Initialize request argument(s)
    time_series_data = aiplatform_v1.TimeSeriesData()
    time_series_data.tensorboard_time_series_id = "tensorboard_time_series_id_value"
    time_series_data.value_type = "BLOB_SEQUENCE"

    request = aiplatform_v1.WriteTensorboardRunDataRequest(
        tensorboard_run="tensorboard_run_value",
        time_series_data=time_series_data,
    )

    # Make the request
    response = client.write_tensorboard_run_data(request=request)

    # Handle the response
    print(response)
async def sample_write_tensorboard_experiment_data():
    # Create a client
    client = aiplatform_v1.TensorboardServiceAsyncClient()

    # Initialize request argument(s)
    write_run_data_requests = aiplatform_v1.WriteTensorboardRunDataRequest()
    write_run_data_requests.tensorboard_run = "tensorboard_run_value"
    write_run_data_requests.time_series_data.tensorboard_time_series_id = "tensorboard_time_series_id_value"
    write_run_data_requests.time_series_data.value_type = "BLOB_SEQUENCE"

    request = aiplatform_v1.WriteTensorboardExperimentDataRequest(
        tensorboard_experiment="tensorboard_experiment_value",
        write_run_data_requests=write_run_data_requests,
    )

    # Make the request
    response = await client.write_tensorboard_experiment_data(request=request)

    # Handle the response
    print(response)