code: def dual(self):
      for identifier in ALLOWED_LAYOUT_MODEL_IDENTIFIER_NAMES:
          if identifier != self.identifier:
              break
  
      return self.__class__(
          backend_name=self.backend_name,
          dataset_name=self.dataset_name,
          model_arch=self.model_arch,
          identifier=identifier,
      )
  
file_path: layout-parser/src/layoutparser/models/model_config.py
imports: from dataclasses import dataclass
label_desc: Use image node_id 5 for calling the LayoutModelConfig obj's underlying member method code with example usage: obj.dual() and returns: self