parameters: (param_dict)
docstring: Check for valid padded_sample and num_padded of padded samples.
  
      Args:
          param_dict (dict): param_dict.
  
      Returns:
          Exception: ValueError or RuntimeError if error.
docstring_summary: Check for valid padded_sample and num_padded of padded samples.
docstring_tokens: Check for valid padded_sample and num_padded of padded samples .
function: def check_padding_options(param_dict):
      """
      Check for valid padded_sample and num_padded of padded samples.
  
      Args:
          param_dict (dict): param_dict.
  
      Returns:
          Exception: ValueError or RuntimeError if error.
      """
  
      columns_list = param_dict.get('columns_list')
      padded_sample, num_padded = param_dict.get('padded_sample'), param_dict.get('num_padded')
      if padded_sample is not None:
          if num_padded is None:
              raise RuntimeError("padded_sample is specified and requires num_padded as well.")
          if num_padded < 0:
              raise ValueError("num_padded is invalid, num_padded={}.".format(num_padded))
          if columns_list is None:
              raise RuntimeError("padded_sample is specified and requires columns_list as well.")
          for column in columns_list:
              if column not in padded_sample:
                  raise ValueError("padded_sample cannot match columns_list.")
      if padded_sample is None and num_padded is not None:
          raise RuntimeError("num_padded is specified but padded_sample is not.")
function_tokens: def check_padding_options ( param_dict ) : columns_list = param_dict . get ( 'columns_list' ) padded_sample , num_padded = param_dict . get ( 'padded_sample' ) , param_dict . get ( 'num_padded' ) if padded_sample is not None : if num_padded is None : raise RuntimeError ( "padded_sample is specified and requires num_padded as well." ) if num_padded < 0 : raise ValueError ( "num_padded is invalid, num_padded={}." . format ( num_padded ) ) if columns_list is None : raise RuntimeError ( "padded_sample is specified and requires columns_list as well." ) for column in columns_list : if column not in padded_sample : raise ValueError ( "padded_sample cannot match columns_list." ) if padded_sample is None and num_padded is not None : raise RuntimeError ( "num_padded is specified but padded_sample is not." )