code: def mangle_test_address(address):
      path, possible_open_bracket, params = address.partition("[")
      names = path.split("::")
      try:
          names.remove("()")
      except ValueError:
          pass
      # convert file path to dotted path
      names[0] = names[0].replace(nodes.SEP, ".")
      names[0] = _py_ext_re.sub("", names[0])
      # put any params back
      names[-1] += possible_open_bracket + params
      return names
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import os
  import platform
  import re
  import sys
  import time
  from datetime import datetime
  import py
  import six
  import pytest
  from _pytest import nodes
  from _pytest.config import filename_arg
label_desc: Use image node_id 11 for calling a global function with example usage: mangle_test_address(address) and returns: names