code: def trim_variable_postfixes(scope_str):
      """Trims any extra numbers added to a tensorflow scope string.
  
      Necessary to align variables in graph and checkpoint
  
      Args:
        scope_str: Tensorflow variable scope string.
      Returns:
        Scope string with extra numbers trimmed off.
      """
      idx = scope_str.find(":")
      return scope_str[:idx]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import random
  from magenta.contrib import training
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 11 for calling a global function with example usage: trim_variable_postfixes(scope_str) and returns: scope_str