code: def format(self, entry):  # noqa: A003
      text = entry["path"]
  
      if entry.get("isout", False) and "out" in self._codes:
          return self._format(text, code="out")
  
      if entry.get("isdir", False):
          return self._format(text, code="di")
  
      if entry.get("isexec", False):
          return self._format(text, code="ex")
  
      _, ext = os.path.splitext(text)
      return self._format(text, ext=ext)
  
imports: import os
label_desc: Use image node_id 3 for calling the LsColors obj's underlying member method code with example usage: obj.format(entry) and returns: self, self, self, self