(cls, def_dict)
return Module(package_path=(lib_def.get('modulePath')
                                or lib_def.get('packagePath')
                                or ''),
                  owner_name=lib_def.get('owner'),
                  owner_domain=lib_def.get('domain'))
Returns a Module corresponding the library_definition of an object.

    If there is a 'library_definition' section in the given dictionary, use it
    to construct a Module from that information. Return None if there is no
    definition.

    Args:
      def_dict: (dict) Discovery style object definition.
    Returns:
      Module or None.
Returns a Module corresponding the library_definition of an object.
Returns a Module corresponding the library_definition of an object .
def ModuleFromDictionary(cls, def_dict):
    """Returns a Module corresponding the library_definition of an object.

    If there is a 'library_definition' section in the given dictionary, use it
    to construct a Module from that information. Return None if there is no
    definition.

    Args:
      def_dict: (dict) Discovery style object definition.
    Returns:
      Module or None.
    """
    lib_def = def_dict.get('library_definition')
    if not lib_def:
      return None
    # Newer style uses modulePath, but some paths through Discovery may use
    # packagePath instead.
    return Module(package_path=(lib_def.get('modulePath')
                                or lib_def.get('packagePath')
                                or ''),
                  owner_name=lib_def.get('owner'),
                  owner_domain=lib_def.get('domain'))
def ModuleFromDictionary ( cls , def_dict ) : lib_def = def_dict . get ( 'library_definition' ) if not lib_def : return None # Newer style uses modulePath, but some paths through Discovery may use # packagePath instead. return Module ( package_path = ( lib_def . get ( 'modulePath' ) or lib_def . get ( 'packagePath' ) or '' ) , owner_name = lib_def . get ( 'owner' ) , owner_domain = lib_def . get ( 'domain' ) )