parameters: (op_name, attr_key, value, val_type, cond=None)
return_statement: return True
docstring: Check whether provided value satisfies specified criteria.
  
      @param      op_name:        The operator name which attributes are checked.
      @param      attr_key:       The attribute name.
      @param      value:          The value to check.
      @param      val_type:       Required value type.
      @param      cond:           The optional function running additional checks.
  
      :raises     UserInputError:
      @return    True if attribute satisfies all criterias. Otherwise False.
docstring_summary: Check whether provided value satisfies specified criteria.
docstring_tokens: Check whether provided value satisfies specified criteria .
function: def _check_value(op_name, attr_key, value, val_type, cond=None):
      # type: (str, str, Any, Type, Optional[Callable[[Any], bool]]) -> bool
      """Check whether provided value satisfies specified criteria.
  
      @param      op_name:        The operator name which attributes are checked.
      @param      attr_key:       The attribute name.
      @param      value:          The value to check.
      @param      val_type:       Required value type.
      @param      cond:           The optional function running additional checks.
  
      :raises     UserInputError:
      @return    True if attribute satisfies all criterias. Otherwise False.
      """
      if not np.issubdtype(type(value), val_type):
          raise UserInputError(
              '{} operator attribute "{}" value must by of type {}.'.format(
                  op_name, attr_key, val_type
              )
          )
      if cond is not None and not cond(value):
          raise UserInputError(
              '{} operator attribute "{}" value does not satisfy provided condition.'.format(
                  op_name, attr_key
              )
          )
      return True
function_tokens: def _check_value ( op_name , attr_key , value , val_type , cond = None ) : # type: (str, str, Any, Type, Optional[Callable[[Any], bool]]) -> bool if not np . issubdtype ( type ( value ) , val_type ) : raise UserInputError ( '{} operator attribute "{}" value must by of type {}.' . format ( op_name , attr_key , val_type ) ) if cond is not None and not cond ( value ) : raise UserInputError ( '{} operator attribute "{}" value does not satisfy provided condition.' . format ( op_name , attr_key ) ) return True