code: def entry_point(__func: Callable) -> Callable:
      
      if __func.__module__ == '__main__':
          import sys
          sys.exit(__func())
      else:
          return __func
docs: Execute function when module is run directly.
  
      Note:
          This allows fall through for importing modules that use it.
  
      Args:
          __func: Function to run