code: def prep_string(s: str) -> str:
      # clearing out leading/trailing spaces, commas, parentheses, and trailing
      # full stops
      return (
          s.strip()
          .replace(",", "")
          .replace(")", "")
          .replace("(", "")
          .rstrip(".")
      )
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from dataclasses import asdict, dataclass
  import logging
  import os
  from typing_extensions import Literal
  import requests
  from datetime import timedelta
  from typing import Optional, Union
  from ratelimit import sleep_and_retry, limits
label_desc: Use image node_id 3 for calling a global function with example usage: prep_string(s) and returns: s