code: def generate_cu_signature(constants, signature, ids):
      # CUtensorMap*s are always the last arguments
      num_regular_signatures = (
          max(signature.keys()) + 1 if len(signature) > 0 else 0
      )
      if ids["ids_of_tensormaps"] is not None:
          for i, _ in enumerate(ids["ids_of_tensormaps"]):
              signature[num_regular_signatures + i] = "*CUtensorMap"
      return signature, num_regular_signatures
  
imports: import os
  import hashlib
  import tempfile
  from pathlib import Path
  from triton.runtime.build import _build
  from triton.runtime.cache import get_cache_manager
  from triton.backends.driver import GPUDriver
label_desc: Use image node_id 3 for calling a global function with example usage: generate_cu_signature(constants, signature, ids) and returns: signature,  num_regular_signatures