code: def code_assist(project, source_code, offset, resource=None,
                  templates=None, maxfixes=1, later_locals=True):
      
      if templates is not None:
          warnings.warn('Codeassist no longer supports templates',
                        DeprecationWarning, stacklevel=2)
      assist = _PythonCodeAssist(
          project, source_code, offset, resource=resource,
          maxfixes=maxfixes, later_locals=later_locals)
      return assist()
docs: Return python code completions as a list of `CodeAssistProposal`\s
  
      `resource` is a `rope.base.resources.Resource` object.  If
      provided, relative imports are handled.
  
      `maxfixes` is the maximum number of errors to fix if the code has
      errors in it.
  
      If `later_locals` is `False` names defined in this scope and after
      this line is ignored.