code: def deep_diff(self, db_data, user_data):
          
          # NOTE: tcex does include the deepdiff library as a dependencies since it is only
          # required for local testing.
          try:
              from deepdiff import DeepDiff
          except ImportError:
              print('Could not import DeepDiff module (try "pip install deepdiff").')
              sys.exit(1)
  
          try:
              ddiff = DeepDiff(db_data, user_data, ignore_order=True)
          except KeyError:
              return False
          except NameError:
              return False
          if ddiff:
              self.tcex.log.info(u'[validate] Diff      : {}'.format(ddiff))
              return False
          return True
docs: Validate data in user data.
  
          Args:
              db_data (dict|str|list): The data store in Redis.
              user_data (dict|str|list): The user provided data.
  
          Returns:
              bool: True if the data passed validation.