def _pretty_print_target(self, target):
    '\n        Make target printouts more user-friendly.\n        1) builtins will be printed as `builtins.xyz`\n        2) operators will be printed as `operator.xyz`\n        3) other callables will be printed with qualfied name, e.g. torch.add\n        '
    if isinstance(target, str):
        return target
    if hasattr(target, '__module__'):
        if (not hasattr(target, '__name__')):
            return _get_qualified_name(target)
        if (target.__module__ == 'builtins'):
            return f'builtins.{target.__name__}'
        elif (target.__module__ == '_operator'):
            return f'operator.{target.__name__}'
    return _get_qualified_name(target)
Make target printouts more user-friendly.
1) builtins will be printed as `builtins.xyz`
2) operators will be printed as `operator.xyz`
3) other callables will be printed with qualfied name, e.g. torch.add
def _pretty_print_target(self, target):
    '\n        Make target printouts more user-friendly.\n        1) builtins will be printed as `builtins.xyz`\n        2) operators will be printed as `operator.xyz`\n        3) other callables will be printed with qualfied name, e.g. torch.add\n        '
    if isinstance(target, str):
        return target
    if hasattr(target, '__module__'):
        if (not hasattr(target, '__name__')):
            return _get_qualified_name(target)
        if (target.__module__ == 'builtins'):
            return f'builtins.{target.__name__}'
        elif (target.__module__ == '_operator'):
            return f'operator.{target.__name__}'
    return _get_qualified_name(target)