code: def default_name_func(func, num, p):
      base_name = func.__name__
      name_suffix = "_%s" % (num,)
  
      if len(p.args) > 0 and isinstance(p.args[0], string_types):
          name_suffix += "_" + parameterized.to_safe_name(p.args[0])
      return base_name + name_suffix
  
imports: import re
  import sys
  import inspect
  import warnings
  from typing import Iterable
  from functools import wraps
  from types import MethodType
  from collections import namedtuple
  from unittest import TestCase
label_desc: Use image node_id 9 for calling a global function with example usage: default_name_func(func, num, p) and returns: unknown