code: def get_instances(ec2, instance_ids):
      instances = list(
          ec2.instances.filter(
              Filters=[{"Name": "instance-id", "Values": instance_ids}]
          )
      )
      return instances
  
file_path: CrypTen/scripts/aws_launcher.py
imports: import concurrent.futures
  import configparser
  import os
  import sys
  import time
  import uuid
  import warnings
  from argparse import ArgumentParser, REMAINDER
  from pathlib import Path
  import boto3
  import paramiko
label_desc: Use image node_id 1 for calling a global function with example usage: get_instances(ec2, instance_ids) and returns: instances