code: def MI_references(self,
                        env,
                        objectName,
                        resultClassName,
                        role,
                        propertyList):
          # pylint: disable=invalid-name
          
  
          logger = env.get_logger()
          logger.log_debug('CIMProvider2 MI_references called. ' \
                           'resultClass: %s' % (resultClassName))
          if not resultClassName:
              raise pywbem.CIMError(
                  pywbem.CIM_ERR_FAILED,
                  "Empty resultClassName passed to References")
          plist = None
          if propertyList is not None:
              plist = [s.lower() for s in propertyList]
          model = pywbem.CIMInstance(classname=resultClassName,
                                     property_list=plist)
          model.path = pywbem.CIMInstanceName(classname=resultClassName,
                                              namespace=objectName.namespace)
          if role:
              if role in model.properties:
                  model[role] = objectName
  
          gen = self.references(env=env,
                                object_name=objectName,
                                model=model,
                                result_class_name='',
                                role=role,
                                result_role=None,
                                keys_only=False)
          if gen is None:
              logger.log_debug('references() returned None instead of ' \
                               'generator object')
              return
          for inst in gen:
              for prop in inst.properties.values():
                  if hasattr(prop.value, 'namespace') and \
                          prop.value.namespace is None:
                      prop.value.namespace = objectName.namespace
              yield inst
          logger.log_debug('CIMProvider2 MI_references returning')
docs: Return instances of an association class.
  
          Implements the WBEM operation References in terms
          of the references method.  A derived class will not normally
          override this method.