code: def encloses(self,
                   location: FileLocation
                   ) -> Optional[FunctionDesc]:
          
          for func in self.in_file(location.filename):
              if location in func.location:
                  return func
          return None
docs: Returns the function, if any, that encloses a given location.