code: def _check_rr_name(self, rr_name):
          # type: (Optional[str]) -> bytes
          '''
          An internal method to check whether this ISO requires or does not
          require a Rock Ridge path.
  
          Parameters:
           rr_name - The Rock Ridge name.
          Returns:
           The Rock Ridge name in bytes if this is a Rock Ridge ISO, None otherwise.
          '''
          if self.rock_ridge:
              if not rr_name:
                  raise pycdlibexception.PyCdlibInvalidInput('A rock ridge name must be passed for a rock-ridge ISO')
  
              if rr_name.count('/') != 0:
                  raise pycdlibexception.PyCdlibInvalidInput('A rock ridge name must be relative')
  
              return rr_name.encode('utf-8')
  
          if rr_name:
              raise pycdlibexception.PyCdlibInvalidInput('A rock ridge name can only be specified for a rock-ridge ISO')
  
          return b'f _check_rr_name(self, rr_name):
          # type: (Optional[str]) -> bytes
          '''
          An internal method to check whether this ISO requires or does not
          require a Rock Ridge path.
  
          Parameters:
           rr_name - The Rock Ridge name.
          Returns:
           The Rock Ridge name in bytes if this is a Rock Ridge ISO, None otherwise.
          '''
          if self.rock_ridge:
              if not rr_name:
                  raise pycdlibexception.PyCdlibInvalidInput('A rock ridge name must be passed for a rock-ridge ISO')
  
              if rr_name.count('/') != 0:
                  raise pycdlibexception.PyCdlibInvalidInput('A rock ridge name must be relative')
  
              return rr_name.encode('utf-8')
  
          if rr_name:
              raise pycdlibexception.PyCdlibInvalidInput('A rock ridge name can only be specified for a rock-ridge ISO')
  
          return b''
docs: An internal method to check whether this ISO requires or does not
          require a Rock Ridge path.
  
          Parameters:
           rr_name - The Rock Ridge name.
          Returns:
           The Rock Ridge name in bytes if this is a Rock Ridge ISO, None otherwise.