class_docstr: Context manager to mock a system command.
  
  The mock command will be written to a directory at the front of $PATH,
  taking precedence over any existing command with the same name.
  
  By specifying content as a string, you can determine what running the
  command will do. The default content records each time the command is
  called and exits: you can access these records with mockcmd.get_calls().
  
  On Windows, the specified content will be run by the Python interpreter in
  use. On Unix, it should start with a shebang (``#!/path/to/interpreter``).
class_docstr_tok: ["Context","manager","to","mock","a","system","command",".","The","mock","command","will","be","written","to","a","directory","at","the","front","of","$","PATH",",","taking","precedence","over","any","existing","command","with","the","same","name",".","By","specifying","content","as","a","string",",","you","can","determine","what","running","the","command","will","do",".","The","default","content","records","each","time","the","command","is","called","and","exits",":","you","can","access","these","records","with","mockcmd.get_calls","(",")",".","On","Windows",",","the","specified","content","will","be","run","by","the","Python","interpreter","in","use",".","On","Unix",",","it","should","start","with","a","shebang","(","``","#","!","\/path\/to\/interpreter","``",")","."]
code: def _copy_exe(self):
      bitness = "64" if (sys.maxsize > 2**32) else "32"
      src = os.path.join(pkgdir, "cli-%s.exe" % bitness)
      dst = os.path.join(self.command_dir, self.name + ".exe")
      shutil.copy(src, dst)
  
file_path: catboost/contrib/python/testpath/py2/testpath/commands.py
imports: import contextlib
  import json
  import os
  import shutil
  import sys
  import tempfile
label_desc: Use image node_id 2 for calling the MockCommand obj's underlying member method code with example usage: obj._copy_exe() without return types