code: def mbasename(s):
      """Returns an expanded basename, if the filename is deemed not informative
  
      A '.py' extension is stripped from file name, and the containing directory
      is prepended for too generic file names  like 'base', '__init__', and 'utils'
  
      Parameters
      ----------
      s: str
        Platform-native path
  
      Returns
      -------
      str
      """
      base = basename(s)
      if base.endswith(".py"):
          base = base[:-3]
      if base in set(["base", "__init__", "utils"]):
          base = basename(dirname(s)) + "." + base
      return base
  
imports: from contextlib import contextmanager
  from functools import partial
  import inspect
  import logging
  import os
  import sys
  import platform
  import random
  import logging.handlers
  import warnings
  from os.path import basename, dirname
  from collections import defaultdict
  from .utils import is_interactive, optional_args
  from .support import ansi_colors
label_desc: Use image node_id 1 for calling a global function with example usage: mbasename(s) and returns: base