code: def get(cls, issue_type):
          
          if isinstance(issue_type, str):
              obj = getattr(db, cls.__name__).find_one(cls.issue_type == issue_type)
  
          elif isinstance(issue_type, int):
              obj = getattr(db, cls.__name__).find_one(cls.issue_type_id == issue_type)
  
          elif isinstance(issue_type, cls):
              return issue_type
  
          else:
              obj = None
  
          if not obj:
              obj = cls()
              obj.issue_type = issue_type
  
              db.session.add(obj)
              db.session.commit()
              db.session.refresh(obj)
  
          return obj
docs: Returns the IssueType object for `issue_type`. If no existing object was found, a new type will
          be created in the database and returned
  
          Args:
              issue_type (str,int,IssueType): Issue type name, id or class
  
          Returns:
              :obj:`IssueType`