code: def patch():
      
      import pynamodb
  
      if hasattr(botocore.vendored.requests.sessions, '_xray_enabled'):
          return
      setattr(botocore.vendored.requests.sessions, '_xray_enabled', True)
  
      wrapt.wrap_function_wrapper(
          'botocore.vendored.requests.sessions',
          'Session.send',
          _xray_traced_pynamodb,
      )
docs: Patch PynamoDB so it generates subsegements when calling DynamoDB.