Datadog interview question

Write a custom agent check in python to send a custom metric.