code: def convert_to_hostname(url: str) -> str:
      return (
          url.replace("http://", "")
          .replace("https://", "")
          .split("/", 1)[0]
      )
  
imports: import base64
  import json
  import logging
  import os
  import platform
  from typing import Any, Dict, Mapping, Optional, Tuple, Union
  import dockerpycreds
label_desc: Use image node_id 10 for calling a global function with example usage: convert_to_hostname(url) and returns: url