code: def __init__(self, r_dir, target_os, keep_temp):
      self.target_os = target_os
      self.r_dir = os.path.abspath(r_dir)
      self.version = [
          l
          for l in open(self.r_dir + "/DESCRIPTION").readlines()
          if "Version:" in l
      ][0].split()[1]
      self.build_dir = tempfile.mkdtemp()
      self.stem = "catboost-R-{}-{}".format(
          self.target_os, self.version
      )
      self.keep_temp = keep_temp
  
imports: from __future__ import print_function
  import argparse
  import os
  import re
  import shutil
  import subprocess
  import sys
  import tempfile
label_desc: Use image node_id 1 to create a new RPackager object from inherited base classes: object with example: obj = RPackager(r_dir, target_os, keep_temp)