code: def load_profiles_definitions(filename):
      
      with open(filename, 'r') as fp:
          profile_definitions = yaml.load(fp)
  
      # assume profile definitions are case insensitive
      profiles_dict = NocaseDict()
      for profile in profile_definitions:
          value = ProfileDef(profile["central_class"],
                             profile["scoping_class"],
                             profile["scoping_path"],
                             profile['type'],
                             profile['doc'])
          key = "%s:%s" % (profile["registered_org"], profile["registered_name"])
  
          profiles_dict[key] = value
      return profiles_dict
docs: Load the registered profiles defined in the file filename.  This is a
      yml file that defines the basic characteristics of each profile with the
      following variables:
  
      It produces a dictionary that can be accessed with the a string that
      defines the profile organization and name in the form <org>:<profile name>
      },