from datetime import datetime


def validateTimecode(timecode):
    """Checks if a string is a timecode of format [%M:%S.%f]"""
    
    try:
        x = datetime.strptime(timecode, '[%M:%S.%f]')
        return True
    
    except ValueError:
        return False