code: def get_definition_location(project, source_code, offset,
                              resource=None, maxfixes=1):
      
      fixer = fixsyntax.FixSyntax(project, source_code, resource, maxfixes)
      pyname = fixer.pyname_at(offset)
      if pyname is not None:
          module, lineno = pyname.get_definition_location()
          if module is not None:
              return module.get_module().get_resource(), lineno
      return (None, None)
docs: Return the definition location of the python name at `offset`
  
      Return a (`rope.base.resources.Resource`, lineno) tuple.  If no
      `resource` is given and the definition is inside the same module,
      the first element of the returned tuple would be `None`.  If the
      location cannot be determined ``(None, None)`` is returned.