docstr: Copy each script listed in ``self.scripts``.
  
  If a script is marked as a Python script (first line matches
  'shebang_pattern', i.e. starts with ``#!`` and contains
  "python"), then adjust in the copy the first line to refer to
  the current Python interpreter.
docstr_tok: ["Copy","each","script","listed","in","``","self.scripts","``",".","If","a","script","is","marked","as","a","Python","script","(","first","line","matches","'shebang_pattern","'",",","i.e",".","starts","with","``","#","!","``","and","contains","''","python","''",")",",","then","adjust","in","the","copy","the","first","line","to","refer","to","the","current","Python","interpreter","."]
code: def copy_scripts(self):
      """
      Copy each script listed in ``self.scripts``.
  
      If a script is marked as a Python script (first line matches
      'shebang_pattern', i.e. starts with ``#!`` and contains
      "python"), then adjust in the copy the first line to refer to
      the current Python interpreter.
      """
      self.mkpath(self.build_dir)
      outfiles = []
      updated_files = []
      for script in self.scripts:
          self._copy_script(script, outfiles, updated_files)
  
      self._change_modes(outfiles)
  
      return outfiles, updated_files
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_distutils/command/build_scripts.py
imports: import os
  import re
  from stat import ST_MODE
  from distutils import sysconfig
  from ..core import Command
  from .._modified import newer
  from ..util import convert_path
  from distutils._log import log
  import tokenize
label_desc: Use image node_id 5 for calling the build_scripts obj's underlying member method code with example usage: obj.copy_scripts() and returns: outfiles,  updated_files