def check_screen():
    '''
    Check whether the experiment is in screen
    '''
    text = os.popen('echo $STY').readlines()
    string = ''
    for line in text:
        string += line
    if len(string.strip()) == 0:
        print("**** Attention Please! The code is not executed in Screen! ****")
    else:
        print(f'**** Screen Name : {string} ****')

    Check whether the experiment is in screen
    
xdoc/fine_tuning/websrc/util.py