def _flds_shape(fieldname, header):
shp = list(header['<STR_LIT>'])<EOL>shp.append(header['<STR_LIT>'])<EOL>if fieldname == '<STR_LIT>':<EOL><INDENT>shp.insert(<NUM_LIT:0>, <NUM_LIT:3>)<EOL>header['<STR_LIT>'] = int(header['<STR_LIT>'][<NUM_LIT:0>] != <NUM_LIT:1>)<EOL>shp[<NUM_LIT:1>] += header['<STR_LIT>']<EOL>header['<STR_LIT>'] = int(header['<STR_LIT>'][<NUM_LIT:1>] != <NUM_LIT:1>)<EOL>shp[<NUM_LIT:2>] += header['<STR_LIT>']<EOL>header['<STR_LIT>'] = <NUM_LIT:1><EOL>header['<STR_LIT>'] = <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>shp.insert(<NUM_LIT:0>, <NUM_LIT:1>)<EOL>header['<STR_LIT>'] = <NUM_LIT:0><EOL>header['<STR_LIT>'] = <NUM_LIT:0><EOL>header['<STR_LIT>'] = <NUM_LIT:0><EOL>header['<STR_LIT>'] = <NUM_LIT:0><EOL><DEDENT>return shp<EOL>
Compute shape of flds variable.