class_docstr: Tensorforce error
class_docstr_tok: ["Tensorforce","error"]
code: def type(name, argument, dtype, condition=None, hint=None):
      if hint is None:
          if condition is None:
              return TensorforceError(
                  message="Invalid type for {name} argument {argument}: {type}.".format(
                      name=name, argument=argument, type=dtype
                  )
              )
          else:
              return TensorforceError(
                  message="Invalid type for {name} argument {argument} given {condition}: {type}.".format(
                      name=name,
                      argument=argument,
                      condition=condition,
                      type=dtype,
                  )
              )
      else:
          if condition is None:
              return TensorforceError(
                  message="Invalid type for {name} argument {argument}: {type} {hint}.".format(
                      name=name,
                      argument=argument,
                      type=dtype,
                      hint=hint,
                  )
              )
          else:
              return TensorforceError(
                  message="Invalid type for {name} argument {argument} given {condition}: {type} {hint}.".format(
                      name=name,
                      argument=argument,
                      condition=condition,
                      type=dtype,
                      hint=hint,
                  )
              )
  
file_path: tensorforce/tensorforce/exception.py
label_desc: Use image node_id 10 for calling the TensorforceError obj's underlying member method code with example usage: obj.type(name, argument, dtype, condition, hint) and returns: TensorforceError, TensorforceError, TensorforceError, TensorforceError