code: def read_2columns_text(path):
      """Read a text file having 2 column as dict object.
      Examples:
          wav.scp:
              key1 /some/path/a.wav
              key2 /some/path/b.wav
          >>> read_2columns_text('wav.scp')
          {'key1': '/some/path/a.wav', 'key2': '/some/path/b.wav'}
      """
  
      keys = set()
      with Path(path).open("r", encoding="utf-8") as f:
          for linenum, line in enumerate(f, 1):
              sps = line.rstrip().split(maxsplit=1)
              if len(sps) == 1:
                  k, v = sps[0], ""
              else:
                  k, v = sps
              if k in keys:
                  continue
              else:
                  print("{} {}".format(k, v))
                  keys.add(k)
  
imports: import argparse
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: read_2columns_text(path) without return types