code: def get_collection_info(
      peer_api_uri: str, collection_name: str
  ) -> dict:
      r = requests.get(f"{peer_api_uri}/collections/{collection_name}")
      assert_http_ok(r)
      res = r.json()["result"]
      return res
  
imports: import json
  import os
  import shutil
  from subprocess import Popen
  import time
  from typing import Tuple, Callable, Dict, List, Optional
  import requests
  import socket
  from contextlib import closing
  from pathlib import Path
  import pytest
  from .assertions import assert_http_ok
label_desc: Use image node_id 18 for calling a global function with example usage: get_collection_info(peer_api_uri, collection_name) and returns: res