code: def copy_install(self, path: Path):
      if path.is_file():
          shutil.copy(path, self.packages)
      elif path.is_dir():
          shutil.copytree(path, self.packages / path.name)
  
file_path: gluonts/src/gluonts/shell/sagemaker/dyn.py
imports: import os
  import shutil
  import subprocess
  import sys
  import tarfile
  import tempfile
  import zipfile
  from functools import partial
  from pathlib import Path
  from typing import Optional
  from gluonts.util import safe_extractall
label_desc: Use image node_id 3 for calling the Installer obj's underlying member method code with example usage: obj.copy_install(path) without return types