def get_visibility(wxdata: [str], units: Units) -> ([str], Number):  
visibility = '<STR_LIT>'  <EOL>if wxdata:<EOL><INDENT>item = copy(wxdata[<NUM_LIT:0>])<EOL>if item.endswith('<STR_LIT>'):  <EOL><INDENT>if item in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>visibility = item[:-<NUM_LIT:2>]<EOL><DEDENT>elif '<STR_LIT:/>' not in item:<EOL><INDENT>visibility = str(int(item[:item.find('<STR_LIT>')]))<EOL><DEDENT>else:<EOL><INDENT>visibility = item[:item.find('<STR_LIT>')]  <EOL><DEDENT>wxdata.pop(<NUM_LIT:0>)<EOL>units.visibility = '<STR_LIT>'<EOL><DEDENT>elif len(item) == <NUM_LIT:4> and item.isdigit():<EOL><INDENT>visibility = wxdata.pop(<NUM_LIT:0>)<EOL>units.visibility = '<STR_LIT:m>'<EOL><DEDENT>elif <NUM_LIT:7> >= len(item) >= <NUM_LIT:5> and item[:<NUM_LIT:4>].isdigit()and (item[<NUM_LIT:4>] in ['<STR_LIT:M>', '<STR_LIT:N>', '<STR_LIT:S>', '<STR_LIT:E>', '<STR_LIT>'] or item[<NUM_LIT:4>:] == '<STR_LIT>'):<EOL><INDENT>visibility = wxdata.pop(<NUM_LIT:0>)[:<NUM_LIT:4>]<EOL>units.visibility = '<STR_LIT:m>'<EOL><DEDENT>elif len(item) == <NUM_LIT:5> and item[<NUM_LIT:1>:].isdigit() and item[<NUM_LIT:0>] in ['<STR_LIT:M>', '<STR_LIT:P>', '<STR_LIT:B>']:<EOL><INDENT>visibility = wxdata.pop(<NUM_LIT:0>)[<NUM_LIT:1>:]<EOL>units.visibility = '<STR_LIT:m>'<EOL><DEDENT>elif item.endswith('<STR_LIT>') and item[:item.find('<STR_LIT>')].isdigit():<EOL><INDENT>visibility = item[:item.find('<STR_LIT>')] + '<STR_LIT>'<EOL>wxdata.pop(<NUM_LIT:0>)<EOL>units.visibility = '<STR_LIT:m>'<EOL><DEDENT>elif len(wxdata) > <NUM_LIT:1> and wxdata[<NUM_LIT:1>].endswith('<STR_LIT>') and '<STR_LIT:/>' in wxdata[<NUM_LIT:1>] and item.isdigit():<EOL><INDENT>vis1 = wxdata.pop(<NUM_LIT:0>)  <EOL>vis2 = wxdata.pop(<NUM_LIT:0>).replace('<STR_LIT>', '<STR_LIT>')  <EOL>visibility = str(int(vis1) * int(vis2[<NUM_LIT:2>]) + int(vis2[<NUM_LIT:0>])) + vis2[<NUM_LIT:1>:]  <EOL>units.visibility = '<STR_LIT>'<EOL><DEDENT><DEDENT>return wxdata, make_number(visibility)<EOL>
Returns the report list and removed visibility string