original_docstring: 
          Checks if the given record type is in the result.
  
          :param to_check:
              The record to check the presence.
          :type to_check: list, str, tuple
          :param dict result:
              The result to work with.
          :param bool allow_empty:
              Tell to if we allow and empty result as present.
  
          :rtype: bool
          
docstring: Checks if the given record type is in the result.
docstring_tokens: Checks if the given record type is in the result .
code: def is_record_present_in_result(cls, to_check, result, allow_empty=False):
          """
          Checks if the given record type is in the result.
  
          :param to_check:
              The record to check the presence.
          :type to_check: list, str, tuple
          :param dict result:
              The result to work with.
          :param bool allow_empty:
              Tell to if we allow and empty result as present.
  
          :rtype: bool
          """
  
          if isinstance(to_check, (list, tuple)):
              return any(
                  [
                      cls.is_record_present_in_result(x, result, allow_empty=allow_empty)
                      for x in to_check
                  ]
              )
  
          if to_check in result:
              if not allow_empty and not result[to_check]:
                  PyFunceble.LOGGER.debug(
                      f"{to_check} record is not in result:\n{result}"
                  )
                  return False
              PyFunceble.LOGGER.debug(f"{to_check} record is in result:\n{result}")
              return True
          PyFunceble.LOGGER.debug(f"{to_check} record is not in result:\n{result}")
          return False
code_tokens: def is_record_present_in_result ( cls , to_check , result , allow_empty = False ) : if isinstance ( to_check , ( list , tuple ) ) : return any ( [ cls . is_record_present_in_result ( x , result , allow_empty = allow_empty ) for x in to_check ] ) if to_check in result : if not allow_empty and not result [ to_check ] : PyFunceble . LOGGER . debug ( f"{to_check} record is not in result:\n{result}" ) return False PyFunceble . LOGGER . debug ( f"{to_check} record is in result:\n{result}" ) return True PyFunceble . LOGGER . debug ( f"{to_check} record is not in result:\n{result}" ) return False
short_docstring: Checks if the given record type is in the result.
short_docstring_tokens: Checks if the given record type is in the result .
comment: """
          Checks if the given record type is in the result.
  
          :param to_check:
              The record to check the presence.
          :type to_check: list, str, tuple
          :param dict result:
              The result to work with.
          :param bool allow_empty:
              Tell to if we allow and empty result as present.
  
          :rtype: bool
          """