human
Complete this python program:
def main():
assistant
#Here is the Python program you requested.

    """Test/Exercise ServerEnvironment on EC2 instance.
    Initializes AMI Metadata and initializes ServerEnvironment object followed by output of results.
    """
    query_ip = Metadata._QUERY_IP
    options.parse_command_line()
    def _OnInitSecrets():
        ServerEnvironment.InitServerEnvironment()
        if ServerEnvironment.IsDevBox():
            print 'IsDevBox    environment'
        if ServerEnvironment.IsStaging():
            print 'IsStaging    environment'
        else:
            print 'IsProduction    environment'
        ioloop.IOLoop.current().stop()
    def _MetadataCallback(metadata):
        SetAMIMetadata(metadata)
        InitSecrets(_OnInitSecrets, False)
    Metadata(callback=_MetadataCallback, query_ip=query_ip)
    ioloop.IOLoop.current().start()
    return 0