code: def _validate_memory(ctx, param, value):
      if value and re.match(r"^\d+(Gi|G|Mi|M)$", value) is None:
          raise click.BadParameter(
              "--memory should be a number then Gi/G/Mi/M e.g 1Gi"
          )
      return value
  
file_path: datasette/datasette/publish/cloudrun.py
imports: from datasette import hookimpl
  import click
  import json
  import os
  import re
  from subprocess import check_call, check_output
  from .common import add_common_publish_arguments_and_options, fail_if_publish_binary_not_installed
  from ..utils import temporary_docker_directory
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_memory(ctx, param, value) and returns: value