code: def _is_valid_bucket(bucket_name: str):
      """Validates correctness of bucket naming.
  
      Reference: https://cloud.google.com/storage/docs/naming
      """
      if bucket_name.startswith("gs://"):
          return False
  
      if len(bucket_name) < 3 or len(bucket_name) > 63:
          return False
  
      # IP address
      if re.match(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$", bucket_name):
          return False
  
      if not re.fullmatch(r"([^A-Z]|-|_|[.]|)+", bucket_name):
          return False
  
      if ".." in bucket_name:
          return False
  
      if "goog" in bucket_name or "g00g" in bucket_name:
          return False
  
      return True
  
imports: import json
  import os
  import os.path
  import re
  from typing import Optional
  from sacred.commandline_options import cli_option
  from sacred.dependencies import get_digest
  from sacred.observers.base import RunObserver
  from sacred.serializer import flatten
  from sacred.utils import PathType
label_desc: Use image node_id 1 for calling a global function with example usage: _is_valid_bucket(bucket_name) and returns: True, False, False, False, False, False, False