code: def get_asset_tarball(asset_name, src_dir, dest_project, dest_folder, json_out):
      
      if os.path.isdir(os.path.join(src_dir, "resources")):
          temp_dir = tempfile.mkdtemp()
          try:
              resource_file = os.path.join(temp_dir, asset_name + "_resources.tar.gz")
              cmd = ["tar", "-czf", resource_file, "-C", os.path.join(src_dir, "resources"), "."]
              subprocess.check_call(cmd)
              file_id = dx_upload(resource_file, dest_project, dest_folder, json_out)
              return file_id
          finally:
              shutil.rmtree(temp_dir)
docs: If the src_dir contains a "resources" directory its contents are archived and
      the archived file is uploaded to the platform