code: def identify_request(request: RequestType) -> bool:
      
      # noinspection PyBroadException
      try:
          data = json.loads(decode_if_bytes(request.body))
          if "@context" in data:
              return True
      except Exception:
          pass
      return False
docs: Try to identify whether this is an ActivityPub request.