def METHOD_NAME(logdir, num_summaries=400):
    """Generate a bunch of histogram data, and write it to logdir."""
    tf.random.set_seed(0)
    writer = tf.summary.create_file_writer(logdir)
    with writer.as_default():
        for step in range(num_summaries):
            k = step / float(num_summaries)
            run(k, step)
            writer.flush()
    print(
        "To view results in your browser, run `tensorboard --logdir %s`"
        % LOGDIR
    )
    print(
        "Logs can be uploaded publicly to TensorBoard.dev via "
        + "`tensorboard dev upload --logdir %s`" % LOGDIR
    )