code: def _process_hyperparameter_value(v: str) -> str | float | int | bool:
      if re.match(r'^"(.*)"$', v):  # value is a string
          return v[1:-1]
      if v in ("false", "False", "true", "True"):
          return v in ("true", "True")
      if "." in v:  # value is float
          return float(v)
      return int(v)
  
imports: from __future__ import annotations
  import datetime
  import json
  import logging
  import re
  import shutil
  import tempfile
  import time
  from collections import Counter
  from functools import cached_property, lru_cache
  from pathlib import Path
  from typing import Any, Callable, cast, Dict, Iterator, List, Tuple, Union
  import boto3
  import numpy
  from botocore.exceptions import ClientError
  from .session import default_session
label_desc: Use image node_id 2 for calling a global function with example usage: _process_hyperparameter_value(v) and returns: int, v, unknown, float