code: def outer_definition_name(cls):
          
          outer_definition = cls.message_definition()
          if not outer_definition:
              return util.get_package_for_module(cls.__module__)
          return outer_definition.definition_name()
docs: Helper method for creating outer definition name.
  
          Returns:
            If definition is nested, will return the outer definitions
            name, else the package name.