<s> import os <EOL> from datetime import datetime <EOL> from django . conf import settings <EOL> import pytz <EOL> def get_machine_id ( ) : <EOL> """<STR_LIT>""" <EOL> if hasattr ( settings , '<STR_LIT>' ) : <EOL> os_name = getattr ( settings , '<STR_LIT>' ) <EOL> elif hasattr ( os , '<STR_LIT>' ) : <EOL> os_name = os . uname ( ) [ <NUM_LIT:1> ] . replace ( '<STR_LIT:.>' , '<STR_LIT:_>' ) <EOL> else : <EOL> os_name = '<STR_LIT>' <EOL> return os_name <EOL> def construct_checkpoint_doc_id_from_name ( name ) : <EOL> return "<STR_LIT>" % name <EOL> def get_formatted_current_timestamp ( ) : <EOL> return datetime . now ( tz = pytz . UTC ) . isoformat ( ) </s>
