class_docstr: Operand class for filtering JumpStart content.
class_docstr_tok: ["Operand","class","for","filtering","JumpStart","content","."]
docstr: Validate operand and return ``Operand`` object.
  
  Args:
      operand (Any): The operand to validate.
  
  Raises:
      RuntimeError: If the operand is not of ``Operand`` or ``str`` type.
code: def validate_operand(operand: Any) -> Any:
      """Validate operand and return ``Operand`` object.
  
      Args:
          operand (Any): The operand to validate.
  
      Raises:
          RuntimeError: If the operand is not of ``Operand`` or ``str`` type.
      """
      if isinstance(operand, str):
          if operand.lower() == BooleanValues.TRUE.lower():
              operand = Operand(
                  operand, resolved_value=BooleanValues.TRUE
              )
          elif operand.lower() == BooleanValues.FALSE.lower():
              operand = Operand(
                  operand, resolved_value=BooleanValues.FALSE
              )
          elif operand.lower() == BooleanValues.UNKNOWN.lower():
              operand = Operand(
                  operand, resolved_value=BooleanValues.UNKNOWN
              )
          else:
              operand = Operand(parse_filter_string(operand))
      elif not issubclass(type(operand), Operand):
          raise RuntimeError(f"Operand '{operand}' is not supported.")
      return operand
  
imports: from __future__ import absolute_import
  from ast import literal_eval
  from enum import Enum
  from typing import Dict, List, Optional, Union, Any
  from sagemaker.jumpstart.types import JumpStartDataHolderType
label_desc: Use image node_id 6 for calling the Operand obj's underlying member method code with example usage: obj.validate_operand(operand) and returns: operand