def CheckDataVisiblity(self, value):
    """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.
    """
    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
            }
        }
    }
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.