code: def menuitemenabled(self, window_name, object_name):
          
          try:
              menu_handle = self._get_menu_handle(window_name, object_name,
                                                  False)
              if menu_handle.AXEnabled:
                  return 1
          except LdtpServerException:
              pass
          return 0
docs: Verify a menu item is enabled
  
          @param window_name: Window name to look for, either full name,
          LDTP's name convention, or a Unix glob.
          @type window_name: string
          @param object_name: Object name to look for, either full name,
          LDTP's name convention, or a Unix glob. Or menu heirarchy
          @type object_name: string
  
          @return: 1 on success.
          @rtype: integer