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