code: def mark_process(name: str, custom_mark: str = None) -> Callable:
      def mark_process_wrapper(func: Callable) -> Callable:
          @wraps(func)
          def wrapper(*args, **kwargs):
              if custom_mark is None:
                  mark = create_process_mark(name)
              else:
                  mark = set_process_mark(name, custom_mark)
  
              try:
                  return func(*args, **kwargs)
              finally:
                  delete_process_mark(name, mark)
  
          return wrapper
  
      return mark_process_wrapper
  
imports: import argparse
  import datetime
  from functools import wraps
  import hashlib
  import base64
  from cryptography.fernet import Fernet
  from collections.abc import Callable
  import requests
  from mindsdb_sql import get_lexer_parser
  from mindsdb_sql.parser.ast import Identifier
  from mindsdb.utilities.fs import create_process_mark, delete_process_mark, set_process_mark
  from mindsdb.utilities import log
label_desc: Use image node_id 4 for calling a global function with example usage: mark_process(name, custom_mark) and returns: mark_process_wrapper, wrapper, func