parameters: (x, value=True)
docstring: Create a bool variable, which type is the same as x.
docstring_summary: Create a bool variable, which type is the same as x.
docstring_tokens: Create a bool variable which type is the same as x .
function: def create_bool_as_type(x, value=True):
      '''
      Create a bool variable, which type is the same as x.
      '''
      if isinstance(x, Variable):
          return fill_constant(shape=[1], value=value, dtype="bool")
      else:
          return value
function_tokens: def create_bool_as_type ( x , value = True ) : if isinstance ( x , Variable ) : return fill_constant ( shape = [ 1 ] , value = value , dtype = "bool" ) else : return value