code: def make_transfer(json_object: Dict[str, str]) -> Transfer:
      if "to" in json_object:
          return Transfer(
              json_object["from"],
              json_object["to"],
              treat_dest_as=Transfer.DEST_IS_TARGET,
          )
      assert "into" in json_object
      return Transfer(
          json_object["from"],
          json_object["into"],
          treat_dest_as=Transfer.DEST_DIR,
      )
  
file_path: hail/hail/python/hailtop/aiotools/copy.py
imports: from typing import List, Dict, AsyncContextManager, Optional, Tuple
  import argparse
  import asyncio
  import json
  import logging
  import sys
  from concurrent.futures import ThreadPoolExecutor
  from rich.progress import Progress, TaskID
  from ..utils.utils import sleep_before_try
  from ..utils.rich_progress_bar import CopyToolProgressBar, make_listener
  from .None import Transfer, Copier
  from .router_fs import RouterAsyncFS
label_desc: Use image node_id 1 for calling a global function with example usage: make_transfer(json_object) and returns: Transfer, Transfer