code: def on_scopes_request(self, py_db, request):
          '''
          Scopes are the top-level items which appear for a frame (so, we receive the frame id
          and provide the scopes it has).
  
          :param ScopesRequest request:
          '''
          frame_id = request.arguments.frameId
  
          variables_reference = frame_id
          scopes = [Scope('Locals', int(variables_reference), False).to_dict()]
          body = ScopesResponseBody(scopes)
          scopes_response = pydevd_base_schema.build_response(request, kwargs={'body':body})
          return NetCommand(CMD_RETURN, 0, scopes_response, is_json=Truef on_scopes_request(self, py_db, request):
          '''
          Scopes are the top-level items which appear for a frame (so, we receive the frame id
          and provide the scopes it has).
  
          :param ScopesRequest request:
          '''
          frame_id = request.arguments.frameId
  
          variables_reference = frame_id
          scopes = [Scope('Locals', int(variables_reference), False).to_dict()]
          body = ScopesResponseBody(scopes)
          scopes_response = pydevd_base_schema.build_response(request, kwargs={'body':body})
          return NetCommand(CMD_RETURN, 0, scopes_response, is_json=True)
docs: Scopes are the top-level items which appear for a frame (so, we receive the frame id
          and provide the scopes it has).
  
          :param ScopesRequest request: