code: def CheckDataVisiblity(self, value):
      
      if not self.data_visibility_policy:
        return None
  
      visible, reason = self.data_visibility_policy.IsDataVisible(
          DetermineType(value))
  
      if visible:
        return None
  
      return {
          'status': {
              'isError': True,
              'refersTo': 'VARIABLE_NAME',
              'description': {
                  'format': reason
              }
          }
      }
docs: Returns a status object if the given name is not visible.
  
      Args:
        value: The value to check.  The actual value here is not important but the
        value's metadata (e.g. package and type) will be checked.
  
      Returns:
        None if the value is visible.  A variable structure with an error status
        if the value should not be visible.