def enable_embedded_timestamp(cam, enable_timestamp):
    embedded_info = cam.getEmbeddedImageInfo()
    if embedded_info.available.timestamp:
        cam.setEmbeddedImageInfo(timestamp=enable_timestamp)
        if enable_timestamp:
            print('\nTimeStamp is enabled.\n')
        else:
            print('\nTimeStamp is disabled.\n')
def enable_embedded_timestamp(cam, enable_timestamp):
    embedded_info = cam.getEmbeddedImageInfo()
    if embedded_info.available.timestamp:
        cam.setEmbeddedImageInfo(timestamp=enable_timestamp)
        if enable_timestamp:
            print('\nTimeStamp is enabled.\n')
        else:
            print('\nTimeStamp is disabled.\n')