def METHOD_NAME(name='hist',
                     master=None,
                     bot=None,
                     benchmark=None,
                     benchmark_description=None,
                     commit_position=None,
                     samples=None):
  hists = [catapult_uploader.histogram.Histogram(name, 'count')]
  if samples:
    for s in samples:
      hists[0].AddSample(s)
  histograms = catapult_uploader.histogram_set.HistogramSet(hists)
  if master:
    histograms.AddSharedDiagnosticToAllHistograms(
        catapult_uploader.reserved_infos.MASTERS.name,
        catapult_uploader.generic_set.GenericSet([master]))
  if bot:
    histograms.AddSharedDiagnosticToAllHistograms(
        catapult_uploader.reserved_infos.BOTS.name,
        catapult_uploader.generic_set.GenericSet([bot]))
  if commit_position:
    histograms.AddSharedDiagnosticToAllHistograms(
        catapult_uploader.reserved_infos.CHROMIUM_COMMIT_POSITIONS.name,
        catapult_uploader.generic_set.GenericSet([commit_position]))
  if benchmark:
    histograms.AddSharedDiagnosticToAllHistograms(
        catapult_uploader.reserved_infos.BENCHMARKS.name,
        catapult_uploader.generic_set.GenericSet([benchmark]))
  if benchmark_description:
    histograms.AddSharedDiagnosticToAllHistograms(
        catapult_uploader.reserved_infos.BENCHMARK_DESCRIPTIONS.name,
        catapult_uploader.generic_set.GenericSet([benchmark_description]))
  return histograms