parameters: (self, tname)
docstring: Returns tname-specific object instance from db.
  
          Internally it uses geonode.monotoring.utils.TypeChecks
          to resolve field's value to object.
docstring_summary: Returns tname-specific object instance from db.
docstring_tokens: Returns tname - specific object instance from db .
function: def _check_type(self, tname):
          """
          Returns tname-specific object instance from db.
  
          Internally it uses geonode.monotoring.utils.TypeChecks
          to resolve field's value to object.
  
          """
          d = self.cleaned_data
          if not d:
              return
          val = d[tname]
          if not val:
              return
          tcheck = getattr(TypeChecks, f'{tname}_type', None)
          if not tcheck:
              raise forms.ValidationError(f"No type check for {tname}")
          try:
              return tcheck(val)
          except (Exception,) as err:
              raise forms.ValidationError(err)
function_tokens: def _check_type ( self , tname ) : d = self . cleaned_data if not d : return val = d [ tname ] if not val : return tcheck = getattr ( TypeChecks , f'{tname}_type' , None ) if not tcheck : raise forms . ValidationError ( f"No type check for {tname}" ) try : return tcheck ( val ) except ( Exception , ) as err : raise forms . ValidationError ( err )