code: def _assign_node_target(node):
      if hasattr(node, "targets"):
          # Only support assigns to right-most name targets.
          return node.targets[-1]
      if hasattr(node, "target"):
          return node.target
      assert False, node
  
imports: import ast
  import json
  import logging
  import os
  import re
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import plugin
  from guild import python_util
  from guild import util
  from .None import flags_import_util
label_desc: Use image node_id 23 for calling a global function with example usage: _assign_node_target(node) and returns: node, node