Put checks.d/batman.py in your checks.d directory, and copy conf.d/batman.yaml.example as batman.yaml into your conf.d directory. You'll need a Datadog account to be able to view the results.
For more info on how to write your own custom check, see the Datadog docs.