code: def url_summary(series: pd.Series) -> dict:
      """
  
      Args:
          series: series to summarize
  
      Returns:
  
      """
      summary = {
          "scheme_counts": series.map(
              lambda x: x.scheme
          ).value_counts(),
          "netloc_counts": series.map(
              lambda x: x.netloc
          ).value_counts(),
          "path_counts": series.map(lambda x: x.path).value_counts(),
          "query_counts": series.map(lambda x: x.query).value_counts(),
          "fragment_counts": series.map(
              lambda x: x.fragment
          ).value_counts(),
      }
  
      return summary
  
imports: from typing import Tuple
  from urllib.parse import urlsplit
  import pandas
  from ydata_profiling.config import Settings
  from ydata_profiling.model.summary_algorithms import describe_url_1d
label_desc: Use image node_id 1 for calling a global function with example usage: url_summary(series) and returns: summary