code: def get_ft_names(mod, include_inner=False)->List[str]:
      "Return all the functions of module `mod`."
      # If the module has an attribute __all__, it picks those.
      # Otherwise, it returns all the functions defined inside a module.
      fn_names = []
      for elt_name in get_exports(mod):
          elt = getattr(mod,elt_name)
          #This removes the files imported from elsewhere
          try:    fname = inspect.getfile(elt)
          except: continue
          if mod.__file__.endswith('__init__.py'):
              if inspect.ismodule(elt): fn_names.append(elt_name)
              else: continue
          else:
              if (fname != mod.__file__): continue
              if inspect.isclass(elt) or inspect.isfunction(elt): fn_names.append(elt_name)
              else: continue
          if include_inner and inspect.isclass(elt) and not is_enum(elt.__class__):
              fn_names.extend(get_inner_fts(elt))
      return fn_namef get_ft_names(mod, include_inner=False)->List[str]:
      "Return all the functions of module `mod`."
      # If the module has an attribute __all__, it picks those.
      # Otherwise, it returns all the functions defined inside a module.
      fn_names = []
      for elt_name in get_exports(mod):
          elt = getattr(mod,elt_name)
          #This removes the files imported from elsewhere
          try:    fname = inspect.getfile(elt)
          except: continue
          if mod.__file__.endswith('__init__.py'):
              if inspect.ismodule(elt): fn_names.append(elt_name)
              else: continue
          else:
              if (fname != mod.__file__): continue
              if inspect.isclass(elt) or inspect.isfunction(elt): fn_names.append(elt_name)
              else: continue
          if include_inner and inspect.isclass(elt) and not is_enum(elt.__class__):
              fn_names.extend(get_inner_fts(elt))
      return fn_names
docs: Return all the functions of module `mod`.