parameters: (tmp: AnyStr, args: Mapping[AnyStr, AnyStr])
return_statement: return prepend_dash(new_args)
docstring: Keeps file names, but replaces the path to a temp folder.
      Example: Namespace(o='abc/test.tmp') -> Namespace(o='/tmp/tmpf9un/test.tmp')
      Except preserve /dev/null.
docstring_summary: Keeps file names, but replaces the path to a temp folder.
      Example: Namespace(o='abc/test.tmp') -> Namespace(o='/tmp/tmpf9un/test.tmp')
      Except preserve /dev/null.
docstring_tokens: Keeps file names but replaces the path to a temp folder . Example : Namespace ( o = abc / test . tmp ) - > Namespace ( o = / tmp / tmpf9un / test . tmp ) Except preserve / dev / null .
function: def replace_cmp_path(tmp: AnyStr, args: Mapping[AnyStr, AnyStr]) -> Sequence[AnyStr]:
      '''
      Keeps file names, but replaces the path to a temp folder.
      Example: Namespace(o='abc/test.tmp') -> Namespace(o='/tmp/tmpf9un/test.tmp')
      Except preserve /dev/null.
      '''
      replace_path = lambda x: os.path.join(tmp, os.path.basename(x)) if x != '/dev/null' else '/dev/null'
      new_args = {key: replace_path(value) for key, value in args.items()}
      return prepend_dash(new_args)
function_tokens: def replace_cmp_path ( tmp : AnyStr , args : Mapping [ AnyStr , AnyStr ] ) -> Sequence [ AnyStr ] : replace_path = lambda x : os . path . join ( tmp , os . path . basename ( x ) ) if x != '/dev/null' else '/dev/null' new_args = { key : replace_path ( value ) for key , value in args . items ( ) } return prepend_dash ( new_args )